diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-21 10:27:20 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-21 12:31:45 -0400 |
commit | b1f88407f3767f924cae1d521e815e568996a4ef (patch) | |
tree | 3725f3a30335552bb56e9852085b7f225a43829a /drivers/media/video/uvc | |
parent | 4e7ca40dbff522691b13dd9b5ed41891e6c68e1a (diff) |
V4L/DVB (9330): Get rid of inode parameter at v4l_compat_translate_ioctl()
The inode parameter at v4l_compat_translate_ioctl() were just passed over several
places just to keep compatible with fops.ioctl. However, it weren't used anywere.
This patch gets hid of this unused parameter.
Cc: Laurent Pinchart <laurent.pinchart@skynet.be>
Cc: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/uvc')
-rw-r--r-- | drivers/media/video/uvc/uvc_v4l2.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/drivers/media/video/uvc/uvc_v4l2.c b/drivers/media/video/uvc/uvc_v4l2.c index 78e4c4e09d89..758dfefaba8d 100644 --- a/drivers/media/video/uvc/uvc_v4l2.c +++ b/drivers/media/video/uvc/uvc_v4l2.c | |||
@@ -464,7 +464,7 @@ static int uvc_v4l2_release(struct inode *inode, struct file *file) | |||
464 | return 0; | 464 | return 0; |
465 | } | 465 | } |
466 | 466 | ||
467 | static int uvc_v4l2_do_ioctl(struct inode *inode, struct file *file, | 467 | static int __uvc_v4l2_do_ioctl(struct file *file, |
468 | unsigned int cmd, void *arg) | 468 | unsigned int cmd, void *arg) |
469 | { | 469 | { |
470 | struct video_device *vdev = video_devdata(file); | 470 | struct video_device *vdev = video_devdata(file); |
@@ -978,8 +978,8 @@ static int uvc_v4l2_do_ioctl(struct inode *inode, struct file *file, | |||
978 | return uvc_xu_ctrl_query(video, arg, 1); | 978 | return uvc_xu_ctrl_query(video, arg, 1); |
979 | 979 | ||
980 | default: | 980 | default: |
981 | if ((ret = v4l_compat_translate_ioctl(inode, file, cmd, arg, | 981 | if ((ret = v4l_compat_translate_ioctl(file, cmd, arg, |
982 | uvc_v4l2_do_ioctl)) == -ENOIOCTLCMD) | 982 | __uvc_v4l2_do_ioctl)) == -ENOIOCTLCMD) |
983 | uvc_trace(UVC_TRACE_IOCTL, "Unknown ioctl 0x%08x\n", | 983 | uvc_trace(UVC_TRACE_IOCTL, "Unknown ioctl 0x%08x\n", |
984 | cmd); | 984 | cmd); |
985 | return ret; | 985 | return ret; |
@@ -988,6 +988,12 @@ static int uvc_v4l2_do_ioctl(struct inode *inode, struct file *file, | |||
988 | return ret; | 988 | return ret; |
989 | } | 989 | } |
990 | 990 | ||
991 | static int uvc_v4l2_do_ioctl(struct inode *inode, struct file *file, | ||
992 | unsigned int cmd, void *arg) | ||
993 | { | ||
994 | return __uvc_v4l2_do_ioctl(file, cmd, arg); | ||
995 | } | ||
996 | |||
991 | static int uvc_v4l2_ioctl(struct inode *inode, struct file *file, | 997 | static int uvc_v4l2_ioctl(struct inode *inode, struct file *file, |
992 | unsigned int cmd, unsigned long arg) | 998 | unsigned int cmd, unsigned long arg) |
993 | { | 999 | { |