]> git.baikalelectronics.ru Git - kernel.git/commit
[media] v4l2-core: add code to check for specific ops
authorHans Verkuil <hans.verkuil@cisco.com>
Sun, 3 Mar 2013 23:12:31 +0000 (20:12 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 24 Mar 2013 14:59:02 +0000 (11:59 -0300)
commita425ec41487d8d6a47341e1fd45815fe71249023
tree3bf6090c56cd6eb0fc85107b8f6f17b1f9c80979
parent83d1144d20380a23e470694a197046ade1838a67
[media] v4l2-core: add code to check for specific ops

This patch adds a v4l2_subdev_has_op() macro and a v4l2_device_has_op macro to
quickly check if a specific subdev or any subdev supports a particular subdev
operation.
This makes it easy for drivers to disable certain ioctls if none of the subdevs
supports the necessary functionality.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
include/media/v4l2-device.h
include/media/v4l2-subdev.h