Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 82c68290 authored by Sakari Ailus's avatar Sakari Ailus Committed by Mauro Carvalho Chehab
Browse files

[media] media: Move struct media_entity_graph definition up



It will be needed in struct media_pipeline shortly.

Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent c8d54cd5
Loading
Loading
Loading
Loading
+10 −10
Original line number Diff line number Diff line
@@ -97,6 +97,16 @@ struct media_entity_enum {
	int idx_max;
};

struct media_entity_graph {
	struct {
		struct media_entity *entity;
		struct list_head *link;
	} stack[MEDIA_ENTITY_ENUM_MAX_DEPTH];

	DECLARE_BITMAP(entities, MEDIA_ENTITY_ENUM_MAX_ID);
	int top;
};

struct media_pipeline {
};

@@ -464,16 +474,6 @@ static inline bool media_entity_enum_intersects(
				 min(ent_enum1->idx_max, ent_enum2->idx_max));
}

struct media_entity_graph {
	struct {
		struct media_entity *entity;
		struct list_head *link;
	} stack[MEDIA_ENTITY_ENUM_MAX_DEPTH];

	DECLARE_BITMAP(entities, MEDIA_ENTITY_ENUM_MAX_ID);
	int top;
};

#define gobj_to_entity(gobj) \
		container_of(gobj, struct media_entity, graph_obj)