]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] media: Move struct media_entity_graph definition up
authorSakari Ailus <sakari.ailus@iki.fi>
Wed, 16 Dec 2015 13:32:19 +0000 (11:32 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Mon, 11 Jan 2016 14:19:17 +0000 (12:19 -0200)
It will be needed in struct media_pipeline shortly.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
include/media/media-entity.h

index c593dbd3e030dac0129547e7968cc4fe78ad21e1..e8ef40c809adcc76b40503b87540edf17dba8de5 100644 (file)
@@ -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)