summaryrefslogtreecommitdiff
path: root/include/media/media-entity.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-08-21 12:23:22 (GMT)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-01-11 14:18:48 (GMT)
commit57cf79b79b18d885c144889989b47149e23c8dc2 (patch)
tree839f57209d8a11d881efc88c629c8573860c8365 /include/media/media-entity.h
parent8211b187ec6461e8d80a36304bd9fc087e3c490f (diff)
downloadlinux-57cf79b79b18d885c144889989b47149e23c8dc2.tar.xz
[media] media: add a linked list to track interfaces by mdev
The media device should list the interface objects, so add a linked list for those interfaces in struct media_device. Acked-by: Hans Verkuil <hans.verkuil@cisco.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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/media/media-entity.h b/include/media/media-entity.h
index d64e8cb..ca35e07 100644
--- a/include/media/media-entity.h
+++ b/include/media/media-entity.h
@@ -156,6 +156,8 @@ struct media_entity {
* struct media_intf_devnode - Define a Kernel API interface
*
* @graph_obj: embedded graph object
+ * @list: Linked list used to find other interfaces that belong
+ * to the same media controller
* @links: List of links pointing to graph entities
* @type: Type of the interface as defined at the
* uapi/media/media.h header, e. g.
@@ -164,6 +166,7 @@ struct media_entity {
*/
struct media_interface {
struct media_gobj graph_obj;
+ struct list_head list;
struct list_head links;
u32 type;
u32 flags;