diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2009-11-04 09:53:49 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-12-05 15:41:19 -0500 |
commit | 350d6407f84db58e2dfb5a5a5283982130746a41 (patch) | |
tree | 8a187e1992f6ed89b7cc8c602b0bfd88ac69fc34 /drivers | |
parent | 3bc766ad374d04349ba09bd93f51980ad29d11c3 (diff) |
V4L/DVB (13310): uvcvideo: Return -EINVAL instead of -ENODEV in read()
-EINVAL is required by the V4L2 specification. -ENODEV is simply wrong
as the device exists.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/uvc/uvc_v4l2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/uvc/uvc_v4l2.c b/drivers/media/video/uvc/uvc_v4l2.c index b3478d0eaf41..be3da56d4db3 100644 --- a/drivers/media/video/uvc/uvc_v4l2.c +++ b/drivers/media/video/uvc/uvc_v4l2.c | |||
@@ -1035,7 +1035,7 @@ static ssize_t uvc_v4l2_read(struct file *file, char __user *data, | |||
1035 | size_t count, loff_t *ppos) | 1035 | size_t count, loff_t *ppos) |
1036 | { | 1036 | { |
1037 | uvc_trace(UVC_TRACE_CALLS, "uvc_v4l2_read: not implemented.\n"); | 1037 | uvc_trace(UVC_TRACE_CALLS, "uvc_v4l2_read: not implemented.\n"); |
1038 | return -ENODEV; | 1038 | return -EINVAL; |
1039 | } | 1039 | } |
1040 | 1040 | ||
1041 | /* | 1041 | /* |