summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/firewire/firedtv-dvb.c
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2009-03-03 20:21:02 -0800
committerTrent Piepho <xyzzy@speakeasy.org>2009-03-03 20:21:02 -0800
commitf848a016635d7ec5b7624ef9235b5a39ca0afee7 (patch)
tree2b9206f040b1ef2fbb685964c5beed52ad8d7ac3 /linux/drivers/media/dvb/firewire/firedtv-dvb.c
parent4f05fe5a173aafe4fd81efaa5a3288f2ab482ca1 (diff)
downloadmediapointer-dvb-s2-f848a016635d7ec5b7624ef9235b5a39ca0afee7.tar.gz
mediapointer-dvb-s2-f848a016635d7ec5b7624ef9235b5a39ca0afee7.tar.bz2
v4l2: Zero out read-only ioctls in one place
From: Trent Piepho <xyzzy@speakeasy.org> 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. Priority: normal Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
Diffstat (limited to 'linux/drivers/media/dvb/firewire/firedtv-dvb.c')
0 files changed, 0 insertions, 0 deletions