diff options
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-v4l2.c')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-v4l2.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-v4l2.c b/drivers/media/video/pvrusb2/pvrusb2-v4l2.c index 97ed95957992..52af1c435965 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-v4l2.c +++ b/drivers/media/video/pvrusb2/pvrusb2-v4l2.c | |||
@@ -168,8 +168,7 @@ static const char *get_v4l_name(int v4l_type) | |||
168 | * This is part of Video 4 Linux API. The procedure handles ioctl() calls. | 168 | * This is part of Video 4 Linux API. The procedure handles ioctl() calls. |
169 | * | 169 | * |
170 | */ | 170 | */ |
171 | static int __pvr2_v4l2_do_ioctl(struct file *file, | 171 | static int pvr2_v4l2_do_ioctl(struct file *file, unsigned int cmd, void *arg) |
172 | unsigned int cmd, void *arg) | ||
173 | { | 172 | { |
174 | struct pvr2_v4l2_fh *fh = file->private_data; | 173 | struct pvr2_v4l2_fh *fh = file->private_data; |
175 | struct pvr2_v4l2 *vp = fh->vhead; | 174 | struct pvr2_v4l2 *vp = fh->vhead; |
@@ -864,7 +863,7 @@ static int __pvr2_v4l2_do_ioctl(struct file *file, | |||
864 | 863 | ||
865 | default : | 864 | default : |
866 | ret = v4l_compat_translate_ioctl(file, cmd, | 865 | ret = v4l_compat_translate_ioctl(file, cmd, |
867 | arg, __pvr2_v4l2_do_ioctl); | 866 | arg, pvr2_v4l2_do_ioctl); |
868 | } | 867 | } |
869 | 868 | ||
870 | pvr2_hdw_commit_ctl(hdw); | 869 | pvr2_hdw_commit_ctl(hdw); |
@@ -890,12 +889,6 @@ static int __pvr2_v4l2_do_ioctl(struct file *file, | |||
890 | return ret; | 889 | return ret; |
891 | } | 890 | } |
892 | 891 | ||
893 | static int pvr2_v4l2_do_ioctl(struct inode *inode, struct file *file, | ||
894 | unsigned int cmd, void *arg) | ||
895 | { | ||
896 | return __pvr2_v4l2_do_ioctl(file, cmd, arg); | ||
897 | } | ||
898 | |||
899 | static void pvr2_v4l2_dev_destroy(struct pvr2_v4l2_dev *dip) | 892 | static void pvr2_v4l2_dev_destroy(struct pvr2_v4l2_dev *dip) |
900 | { | 893 | { |
901 | int num = dip->devbase.num; | 894 | int num = dip->devbase.num; |
@@ -963,7 +956,7 @@ static int pvr2_v4l2_ioctl(struct inode *inode, struct file *file, | |||
963 | #define IVTV_IOC_G_CODEC 0xFFEE7703 | 956 | #define IVTV_IOC_G_CODEC 0xFFEE7703 |
964 | #define IVTV_IOC_S_CODEC 0xFFEE7704 | 957 | #define IVTV_IOC_S_CODEC 0xFFEE7704 |
965 | if (cmd == IVTV_IOC_G_CODEC || cmd == IVTV_IOC_S_CODEC) return 0; | 958 | if (cmd == IVTV_IOC_G_CODEC || cmd == IVTV_IOC_S_CODEC) return 0; |
966 | return video_usercopy(inode, file, cmd, arg, pvr2_v4l2_do_ioctl); | 959 | return video_usercopy(file, cmd, arg, pvr2_v4l2_do_ioctl); |
967 | } | 960 | } |
968 | 961 | ||
969 | 962 | ||