V4L/DVB: video_ioctl2: handle the v4l1 compat bit first and move VIDIOCGMBUF into...
authorHans Verkuil <hverkuil@xs4all.nl>
Tue, 6 Apr 2010 18:56:08 +0000 (15:56 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 May 2010 15:57:10 +0000 (12:57 -0300)
commit6a717883e720f75dec252c8af2a2d6dd049af254
tree66ac33312b2d5b3888cfbd6bedb65451ab28a89b
parentdd1ad942ac0b1bb7f72f9f3d822ec937aa07dc4d
V4L/DVB: video_ioctl2: handle the v4l1 compat bit first and move VIDIOCGMBUF into the switch

Try to make a more sensible sequence of events in __video_do_ioctl: first
check for a valid ops pointer, then get the compat part done. The VIDIOCGMBUF
command is now part of the big switch.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/v4l2-ioctl.c