]> git.baikalelectronics.ru Git - kernel.git/commit
[media] uvcvideo: Return -EINVAL when setting a menu control to an invalid value
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Fri, 11 Jan 2013 13:22:39 +0000 (10:22 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 28 Mar 2013 21:37:11 +0000 (18:37 -0300)
commitad7cdef408b4a9503a8d9c4e90d48f1cd2d4c7e8
tree36de334462c207e4140b25b2f26df72a036e710a
parent3cb50262398bf62f918c80974aa0a31d1faad8a9
[media] uvcvideo: Return -EINVAL when setting a menu control to an invalid value

-ERANGE is the right error code when the value is outside of the menu
range, but -EINVAL must be reported for invalid values inside the range.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/usb/uvc/uvc_ctrl.c