]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
V4L/DVB (13310): uvcvideo: Return -EINVAL instead of -ENODEV in read()
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Wed, 4 Nov 2009 14:53:49 +0000 (11:53 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 5 Dec 2009 20:41:19 +0000 (18:41 -0200)
-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>
drivers/media/video/uvc/uvc_v4l2.c

index b3478d0eaf41b4809ea1cfa7bb4a8a4b03b60872..be3da56d4db3cf5cf5cae243f589bbc57e326dbf 100644 (file)
@@ -1035,7 +1035,7 @@ static ssize_t uvc_v4l2_read(struct file *file, char __user *data,
                    size_t count, loff_t *ppos)
 {
        uvc_trace(UVC_TRACE_CALLS, "uvc_v4l2_read: not implemented.\n");
-       return -ENODEV;
+       return -EINVAL;
 }
 
 /*