diff options
author | Hans Verkuil <hansverk@cisco.com> | 2018-02-28 11:41:11 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-07-25 13:46:24 +0200 |
commit | 588f4ee7e6fc5c9a0fb07c7051cdd341949e0feb (patch) | |
tree | efc77a7eb88653e3727d030343d8ba067b6d6454 /drivers/media/media-device.c | |
parent | media: media-ioc-g-topology.rst: document new 'index' field (diff) | |
download | linux-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/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 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)); |