aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@nokia.com>2007-08-30 08:20:40 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-10-09 21:14:39 -0400
commit61c310dc1e2a34bced25b4fa7609316d6755ccc2 (patch)
treed644d55208295562c7b6eb3b22c132af8b45870e /drivers
parent08256ea0da18db20f2edc2e8c935cf74c33ad564 (diff)
V4L/DVB (6218): V4L: Int if: Use -ENOIOCTLCMD for nonexistent ioctls
Signed-off-by: Sakari Ailus <sakari.ailus@nokia.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/v4l2-int-device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/v4l2-int-device.c b/drivers/media/video/v4l2-int-device.c
index 7ad8700ebdea..f497c9458344 100644
--- a/drivers/media/video/v4l2-int-device.c
+++ b/drivers/media/video/v4l2-int-device.c
@@ -143,7 +143,7 @@ static v4l2_int_ioctl_func *find_ioctl(struct v4l2_int_slave *slave, int cmd,
143 143
144static int no_such_ioctl_0(struct v4l2_int_device *d) 144static int no_such_ioctl_0(struct v4l2_int_device *d)
145{ 145{
146 return -EINVAL; 146 return -ENOIOCTLCMD;
147} 147}
148 148
149int v4l2_int_ioctl_0(struct v4l2_int_device *d, int cmd) 149int v4l2_int_ioctl_0(struct v4l2_int_device *d, int cmd)
@@ -155,7 +155,7 @@ int v4l2_int_ioctl_0(struct v4l2_int_device *d, int cmd)
155 155
156static int no_such_ioctl_1(struct v4l2_int_device *d, void *arg) 156static int no_such_ioctl_1(struct v4l2_int_device *d, void *arg)
157{ 157{
158 return -EINVAL; 158 return -ENOIOCTLCMD;
159} 159}
160 160
161int v4l2_int_ioctl_1(struct v4l2_int_device *d, int cmd, void *arg) 161int v4l2_int_ioctl_1(struct v4l2_int_device *d, int cmd, void *arg)