]> git.baikalelectronics.ru Git - kernel.git/commit
[media] em28xx: use v4l2_disable_ioctl() to disable ioctl VIDIOC_S_PARM
authorFrank Schaefer <fschaefer.oss@googlemail.com>
Thu, 7 Feb 2013 16:39:12 +0000 (13:39 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 4 Mar 2013 16:39:47 +0000 (13:39 -0300)
commitaa8ec18f33704a38eb3faf7658a33160c47d5c6a
treee9d054f8e81b08adc691b81036ff1ac741a7ffc6
parent71913f00782c94c326e7c125cac5d0c05b4186f9
[media] em28xx: use v4l2_disable_ioctl() to disable ioctl VIDIOC_S_PARM

Instead of checking the device type and returning -ENOTTY inside the ioctl
function, use v4l2_disable_ioctl() to disable the ioctl VIDIOC_S_PARM if the
device is not a camera.

Signed-off-by: Frank Schäfer <fschaefer.oss@googlemail.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/em28xx/em28xx-video.c