summaryrefslogtreecommitdiff
path: root/include/media/media-entity.h
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@iki.fi>2015-12-16 11:32:28 -0200
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-01-11 12:19:20 -0200
commit29d8da02d13020a18929a30692d454bd863d4207 (patch)
treeede2bbe080db7dd2a0a35fcc61c6b5bd62d90427 /include/media/media-entity.h
parentc1a5f1bc0b7a585efaeda40c1eb8f5f4bd9d328d (diff)
[media] media: Use entity enums in graph walk
This will also mean that the necessary graph related data structures will be allocated dynamically, removing the need for maximum ID checks. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'include/media/media-entity.h')
-rw-r--r--include/media/media-entity.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/media/media-entity.h b/include/media/media-entity.h
index 7f028ea84911..a53acb099c16 100644
--- a/include/media/media-entity.h
+++ b/include/media/media-entity.h
@@ -103,7 +103,7 @@ struct media_entity_enum {
* @stack: Graph traversal stack; the stack contains information
* on the path the media entities to be walked and the
* links through which they were reached.
- * @entities: Visited entities
+ * @ent_enum: Visited entities
* @top: The top of the stack
*/
struct media_entity_graph {
@@ -112,7 +112,7 @@ struct media_entity_graph {
struct list_head *link;
} stack[MEDIA_ENTITY_ENUM_MAX_DEPTH];
- DECLARE_BITMAP(entities, MEDIA_ENTITY_ENUM_MAX_ID);
+ struct media_entity_enum ent_enum;
int top;
};