diff options
author | Trent Piepho <xyzzy@speakeasy.org> | 2009-03-03 23:21:02 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:43:05 -0400 |
commit | 337f9d205972bfe1cb7982384fd0f4caa4af001d (patch) | |
tree | ce1f34f16e8a952a4e356e2a40984a30a3f5ab21 /include | |
parent | 19c96e4b7d3c80071982a052e4a921c1a39875d9 (diff) |
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')
0 files changed, 0 insertions, 0 deletions