[media] uvcvideo: Return -ENOTTY for unsupported ioctls
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:28:37 +0000 (10:28 -0200)
commit69d11262a3ff4c07e071523e6768ec15ccc147c1
tree9f9a3863369746fe99ec2fc181a5bb8ef1b65324
parentf887e99ae2210e23c9726b6f146938a84f6acc47
[media] uvcvideo: Return -ENOTTY for unsupported ioctls

The proper error code is -ENOTTY instead of -EINVAL.
This issue was found by the v4l2-compliance tool.

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_v4l2.c