diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-08-30 15:20:40 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-08-30 15:20:40 +0300 |
commit | c70f6f1d78e9bf2269e4214cd3dce1bc3470463b (patch) | |
tree | c32725943376ab47927ec079a5f29504ea15f5ef /linux/drivers/media/video/v4l2-int-device.c | |
parent | 64ce3bac21d613a4a6074d7768411113f6e342dd (diff) | |
download | mediapointer-dvb-s2-c70f6f1d78e9bf2269e4214cd3dce1bc3470463b.tar.gz mediapointer-dvb-s2-c70f6f1d78e9bf2269e4214cd3dce1bc3470463b.tar.bz2 |
V4L: Int if: Use -ENOIOCTLCMD for nonexistent ioctls.
From: Sakari Ailus <sakari.ailus@nokia.com>
Signed-off-by: Sakari Ailus <sakari.ailus@nokia.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/drivers/media/video/v4l2-int-device.c')
-rw-r--r-- | linux/drivers/media/video/v4l2-int-device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/video/v4l2-int-device.c b/linux/drivers/media/video/v4l2-int-device.c index afb2a651f..84530a641 100644 --- a/linux/drivers/media/video/v4l2-int-device.c +++ b/linux/drivers/media/video/v4l2-int-device.c @@ -144,7 +144,7 @@ static v4l2_int_ioctl_func *find_ioctl(struct v4l2_int_slave *slave, int cmd, static int no_such_ioctl_0(struct v4l2_int_device *d) { - return -EINVAL; + return -ENOIOCTLCMD; } int v4l2_int_ioctl_0(struct v4l2_int_device *d, int cmd) @@ -156,7 +156,7 @@ int v4l2_int_ioctl_0(struct v4l2_int_device *d, int cmd) static int no_such_ioctl_1(struct v4l2_int_device *d, void *arg) { - return -EINVAL; + return -ENOIOCTLCMD; } int v4l2_int_ioctl_1(struct v4l2_int_device *d, int cmd, void *arg) |