[media] uvcvideo: Return -EACCES when trying to access a read/write-only control
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 28 Aug 2012 21:38:58 +0000 (18:38 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 28 Nov 2012 12:27:18 +0000 (10:27 -0200)
commit30ecb936cbcd83e3735625ac63e1b4466546f5fe
tree3dcfcf158a7e0e25a8637367323642a37db5ef38
parentf0ed2ce840b3a59b587e8aa398538141a86e9588
[media] uvcvideo: Return -EACCES when trying to access a read/write-only control

The proper return code according to the V4L2 specification is -EACCES,
not -EINVAL.

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