aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/v4l2-subdev.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2010-02-26 12:23:10 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-03-22 04:53:45 -0300
commitc30b46e58b31a0fc420049e21117444862fc7cb7 (patch)
tree684db5e6880fa8df24df1893be2478c0d455fe27 /drivers/media/video/v4l2-subdev.c
parentcfe2cde6d33f15994ad34466ac4a08f5bb348948 (diff)
downloadkernel_samsung_smdk4412-c30b46e58b31a0fc420049e21117444862fc7cb7.zip
kernel_samsung_smdk4412-c30b46e58b31a0fc420049e21117444862fc7cb7.tar.gz
kernel_samsung_smdk4412-c30b46e58b31a0fc420049e21117444862fc7cb7.tar.bz2
[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 6e76f73..0b80644 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;