]> git.baikalelectronics.ru Git - kernel.git/commit
[media] gspca: Fix querycap and incorrect return codes
authorHans Verkuil <hans.verkuil@cisco.com>
Sun, 6 May 2012 12:28:21 +0000 (09:28 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 14 May 2012 12:27:57 +0000 (09:27 -0300)
commit6216d5817a3c375dfd62870cb6332221e4907b2f
tree1b19378610c8817b3103a77ccf1925ff4e4bc527
parent00d83beee186603af6bbf567580aac25516738bf
[media] gspca: Fix querycap and incorrect return codes

Add V4L2_CAP_DEVICE_CAPS support to querycap and replace -EINVAL by
-ENOTTY whenever an ioctl is not supported.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/gspca.c