summaryrefslogtreecommitdiffstats
path: root/include/media/v4l2-ioctl.h
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2009-03-04 05:21:02 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 17:43:05 +0200
commit337f9d205972bfe1cb7982384fd0f4caa4af001d (patch)
treece1f34f16e8a952a4e356e2a40984a30a3f5ab21 /include/media/v4l2-ioctl.h
parentV4L/DVB (10811): videodev: only copy needed part of RW ioctl's parameter (diff)
downloadlinux-337f9d205972bfe1cb7982384fd0f4caa4af001d.tar.xz
linux-337f9d205972bfe1cb7982384fd0f4caa4af001d.zip
V4L/DVB (10812): v4l2: Zero out read-only ioctls in one place
If an ioctl is read-only then the driver fills in all the fields. Lots of times drivers only care about some fields so it's best if video_ioctl2 takes care of zeroing out the entire structure before handing it to the driver. This saves code in each driver to do it and driver authors often forget. The existing memset code in some of the read-only ioctl handlers can be deleted. Convert a case statement to a single if statement. Deleted a debug line from ENUMAUDOUT that was copy-and-pasted to G_AUDOUT by mistake. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media/v4l2-ioctl.h')
0 files changed, 0 insertions, 0 deletions