summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/v4l2-subdev.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2010-02-26 16:23:10 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-03-22 08:53:45 +0100
commitc30b46e58b31a0fc420049e21117444862fc7cb7 (patch)
tree684db5e6880fa8df24df1893be2478c0d455fe27 /drivers/media/video/v4l2-subdev.c
parent[media] omap2: Fix camera resources for multiomap (diff)
downloadlinux-c30b46e58b31a0fc420049e21117444862fc7cb7.tar.xz
linux-c30b46e58b31a0fc420049e21117444862fc7cb7.zip
[media] v4l: subdev: Generic ioctl support
Instead of returning an error when receiving an ioctl call with an unsupported command, forward the call to the subdev core::ioctl handler. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Acked-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/v4l2-subdev.c')
-rw-r--r--drivers/media/video/v4l2-subdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/v4l2-subdev.c b/drivers/media/video/v4l2-subdev.c
index 6e76f734c780..0b8064490676 100644
--- a/drivers/media/video/v4l2-subdev.c
+++ b/drivers/media/video/v4l2-subdev.c
@@ -276,7 +276,7 @@ static long subdev_do_ioctl(struct file *file, unsigned int cmd, void *arg)
}
#endif
default:
- return -ENOIOCTLCMD;
+ return v4l2_subdev_call(sd, core, ioctl, cmd, arg);
}
return 0;