summaryrefslogtreecommitdiffstats
path: root/drivers/media/media-devnode.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2016-02-29 12:45:44 +0100
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2016-04-13 22:20:22 +0200
commitb76a2a8cb6f6d9da711305d805156b40c698e94f (patch)
tree7be5f0de33da38490195ce34e7eadec187c1d087 /drivers/media/media-devnode.c
parent[media] soc_camera: rcar_vin: add device tree support for r8a7792 (diff)
downloadlinux-b76a2a8cb6f6d9da711305d805156b40c698e94f.tar.xz
linux-b76a2a8cb6f6d9da711305d805156b40c698e94f.zip
[media] media: Add obj_type field to struct media_entity
Code that processes media entities can require knowledge of the structure type that embeds a particular media entity instance in order to cast the entity to the proper object type. This needs is shown by the presence of the is_media_entity_v4l2_io and is_media_entity_v4l2_subdev functions. The implementation of those two functions relies on the entity function field, which is both a wrong and an inefficient design, without even mentioning the maintenance issue involved in updating the functions every time a new entity function is added. Fix this by adding add an obj_type field to the media entity structure to carry the information. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/media-devnode.c')
0 files changed, 0 insertions, 0 deletions