diff options
author | Hans Verkuil | 2013-03-04 00:12:31 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab | 2013-03-24 15:59:02 +0100 |
commit | 2180f92def1921397f422f278b3cc65751b749cc (patch) | |
tree | 3bf6090c56cd6eb0fc85107b8f6f17b1f9c80979 /drivers/media/v4l2-core | |
parent | [media] v4l2-ctrls: eliminate lockdep false alarms for struct v4l2_ctrl_handl... (diff) | |
download | kernel-qcow2-linux-2180f92def1921397f422f278b3cc65751b749cc.tar.gz kernel-qcow2-linux-2180f92def1921397f422f278b3cc65751b749cc.tar.xz kernel-qcow2-linux-2180f92def1921397f422f278b3cc65751b749cc.zip |
[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>
Diffstat (limited to 'drivers/media/v4l2-core')
0 files changed, 0 insertions, 0 deletions