diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-09-06 13:59:08 (GMT) |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2016-01-11 14:19:01 (GMT) |
commit | d87cdb884486bfa795be99c83a5b3ac4d428ca84 (patch) | |
tree | 40f87b39589940f201c2a10e265f24c05e1459ff /drivers/media/media-device.c | |
parent | 0e576b76f5470a2f8b2287958a2b9a3dd0f56f10 (diff) | |
download | linux-d87cdb884486bfa795be99c83a5b3ac4d428ca84.tar.xz |
[media] media-device: export the entity function via new ioctl
Now that entities have a main function, expose it via
MEDIA_IOC_G_TOPOLOGY ioctl.
Please notice that some entities may have secundary functions.
Such use case will be addressed later, when we add support for the
Media Controller properties.
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/media-device.c')
-rw-r--r-- | drivers/media/media-device.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/media-device.c b/drivers/media/media-device.c index 4f83884..83525ac 100644 --- a/drivers/media/media-device.c +++ b/drivers/media/media-device.c @@ -263,6 +263,7 @@ static long __media_device_get_topology(struct media_device *mdev, /* Copy fields to userspace struct if not error */ memset(&uentity, 0, sizeof(uentity)); uentity.id = entity->graph_obj.id; + uentity.function = entity->function; strncpy(uentity.name, entity->name, sizeof(uentity.name)); |