summaryrefslogtreecommitdiffstats
path: root/sound/i2c
diff options
context:
space:
mode:
authorHans Verkuil2012-05-10 10:36:00 +0200
committerMauro Carvalho Chehab2012-05-14 14:17:28 +0200
commit48ea0be06028d97b57602372f032afbec02e7e97 (patch)
treee4d089a40163ba3491b0d5989048cec29ccbba17 /sound/i2c
parent[media] v4l2-dev: make it possible to skip locking for selected ioctls (diff)
downloadkernel-qcow2-linux-48ea0be06028d97b57602372f032afbec02e7e97.tar.gz
kernel-qcow2-linux-48ea0be06028d97b57602372f032afbec02e7e97.tar.xz
kernel-qcow2-linux-48ea0be06028d97b57602372f032afbec02e7e97.zip
[media] v4l2-dev/ioctl: determine the valid ioctls upfront
Rather than testing whether an ioctl is implemented in the driver or not every time the ioctl is called, do it upfront when the device is registered. This also allows a driver to disable certain ioctls based on the capabilities of the detected board, something you can't do today without creating separate v4l2_ioctl_ops structs for each new variation. For the most part it is pretty straightforward, but for control ioctls a flag is needed since it is possible that you have per-filehandle controls, and that can't be determined upfront of course. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Acked-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'sound/i2c')
0 files changed, 0 insertions, 0 deletions