summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorHans Verkuil <hansverk@cisco.com>2018-02-28 11:41:11 +0100
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-07-25 13:46:24 +0200
commit588f4ee7e6fc5c9a0fb07c7051cdd341949e0feb (patch)
treeefc77a7eb88653e3727d030343d8ba067b6d6454 /drivers
parentmedia: media-ioc-g-topology.rst: document new 'index' field (diff)
downloadlinux-588f4ee7e6fc5c9a0fb07c7051cdd341949e0feb.tar.xz
linux-588f4ee7e6fc5c9a0fb07c7051cdd341949e0feb.zip
media: add flags field to struct media_v2_entity
The v2 entity structure never exposed the entity flags, which made it impossible to detect connector or default entities. It is really trivial to just expose this information, so implement this. Signed-off-by: Hans Verkuil <hansverk@cisco.com> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/media-device.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/media-device.c b/drivers/media/media-device.c
index 047d38372a27..14959b19a342 100644
--- a/drivers/media/media-device.c
+++ b/drivers/media/media-device.c
@@ -266,6 +266,7 @@ static long media_device_get_topology(struct media_device *mdev, void *arg)
memset(&kentity, 0, sizeof(kentity));
kentity.id = entity->graph_obj.id;
kentity.function = entity->function;
+ kentity.flags = entity->flags;
strlcpy(kentity.name, entity->name,
sizeof(kentity.name));