diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-08-21 12:23:22 (GMT) |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-01-11 14:18:48 (GMT) |
commit | 57cf79b79b18d885c144889989b47149e23c8dc2 (patch) | |
tree | 839f57209d8a11d881efc88c629c8573860c8365 /include/media/media-device.h | |
parent | 8211b187ec6461e8d80a36304bd9fc087e3c490f (diff) | |
download | linux-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-device.h')
-rw-r--r-- | include/media/media-device.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/media/media-device.h b/include/media/media-device.h index 3b14394..51807ef 100644 --- a/include/media/media-device.h +++ b/include/media/media-device.h @@ -46,6 +46,7 @@ struct device; * @link_id: Unique ID used on the last link registered * @intf_devnode_id: Unique ID used on the last interface devnode registered * @entities: List of registered entities + * @interfaces: List of registered interfaces * @lock: Entities list lock * @graph_mutex: Entities graph operation lock * @link_notify: Link state change notification callback @@ -77,6 +78,7 @@ struct media_device { u32 intf_devnode_id; struct list_head entities; + struct list_head interfaces; /* Protects the entities list */ spinlock_t lock; |