From f579d3c318993d8c1407dc51a709e1cdf1b5cc75 Mon Sep 17 00:00:00 2001 From: Douglas Schilling Landgraf Date: Wed, 9 Apr 2008 22:18:56 -0300 Subject: videodev: Add default vidioc handler From: Douglas Schilling Landgraf Added default vidioc handler for other private ioctls Signed-off-by: Douglas Schilling Landgraf --- linux/drivers/media/video/videodev.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'linux/drivers/media/video/videodev.c') diff --git a/linux/drivers/media/video/videodev.c b/linux/drivers/media/video/videodev.c index 43cdb1de5..9c38b6b2f 100644 --- a/linux/drivers/media/video/videodev.c +++ b/linux/drivers/media/video/videodev.c @@ -1890,6 +1890,13 @@ static int __video_do_ioctl(struct inode *inode, struct file *file, dbgarg (cmd, "chip_ident=%u, revision=0x%x\n", p->ident, p->revision); break; } + default: + { + if (!vfd->vidioc_default) + break; + ret = vfd->vidioc_default(file, fh, cmd, arg); + break; + } } /* switch */ if (vfd->debug & V4L2_DEBUG_IOCTL_ARG) { -- cgit v1.2.3