diff options
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-v4l2.c')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-v4l2.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-v4l2.c b/drivers/media/video/pvrusb2/pvrusb2-v4l2.c index 50554b44d355..b9aedceb2c44 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-v4l2.c +++ b/drivers/media/video/pvrusb2/pvrusb2-v4l2.c | |||
@@ -168,13 +168,13 @@ 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, unsigned int cmd, void *arg) | 171 | static long pvr2_v4l2_do_ioctl(struct file *file, unsigned int cmd, void *arg) |
172 | { | 172 | { |
173 | struct pvr2_v4l2_fh *fh = file->private_data; | 173 | struct pvr2_v4l2_fh *fh = file->private_data; |
174 | struct pvr2_v4l2 *vp = fh->vhead; | 174 | struct pvr2_v4l2 *vp = fh->vhead; |
175 | struct pvr2_v4l2_dev *dev_info = fh->dev_info; | 175 | struct pvr2_v4l2_dev *dev_info = fh->dev_info; |
176 | struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; | 176 | struct pvr2_hdw *hdw = fh->channel.mc_head->hdw; |
177 | int ret = -EINVAL; | 177 | long ret = -EINVAL; |
178 | 178 | ||
179 | if (pvrusb2_debug & PVR2_TRACE_V4LIOCTL) { | 179 | if (pvrusb2_debug & PVR2_TRACE_V4LIOCTL) { |
180 | v4l_print_ioctl(pvr2_hdw_get_driver_name(hdw),cmd); | 180 | v4l_print_ioctl(pvr2_hdw_get_driver_name(hdw),cmd); |
@@ -871,20 +871,20 @@ static int pvr2_v4l2_do_ioctl(struct file *file, unsigned int cmd, void *arg) | |||
871 | if (ret < 0) { | 871 | if (ret < 0) { |
872 | if (pvrusb2_debug & PVR2_TRACE_V4LIOCTL) { | 872 | if (pvrusb2_debug & PVR2_TRACE_V4LIOCTL) { |
873 | pvr2_trace(PVR2_TRACE_V4LIOCTL, | 873 | pvr2_trace(PVR2_TRACE_V4LIOCTL, |
874 | "pvr2_v4l2_do_ioctl failure, ret=%d",ret); | 874 | "pvr2_v4l2_do_ioctl failure, ret=%ld", ret); |
875 | } else { | 875 | } else { |
876 | if (pvrusb2_debug & PVR2_TRACE_V4LIOCTL) { | 876 | if (pvrusb2_debug & PVR2_TRACE_V4LIOCTL) { |
877 | pvr2_trace(PVR2_TRACE_V4LIOCTL, | 877 | pvr2_trace(PVR2_TRACE_V4LIOCTL, |
878 | "pvr2_v4l2_do_ioctl failure, ret=%d" | 878 | "pvr2_v4l2_do_ioctl failure, ret=%ld" |
879 | " command was:",ret); | 879 | " command was:", ret); |
880 | v4l_print_ioctl(pvr2_hdw_get_driver_name(hdw), | 880 | v4l_print_ioctl(pvr2_hdw_get_driver_name(hdw), |
881 | cmd); | 881 | cmd); |
882 | } | 882 | } |
883 | } | 883 | } |
884 | } else { | 884 | } else { |
885 | pvr2_trace(PVR2_TRACE_V4LIOCTL, | 885 | pvr2_trace(PVR2_TRACE_V4LIOCTL, |
886 | "pvr2_v4l2_do_ioctl complete, ret=%d (0x%x)", | 886 | "pvr2_v4l2_do_ioctl complete, ret=%ld (0x%lx)", |
887 | ret,ret); | 887 | ret, ret); |
888 | } | 888 | } |
889 | return ret; | 889 | return ret; |
890 | } | 890 | } |
@@ -948,7 +948,7 @@ static void pvr2_v4l2_internal_check(struct pvr2_channel *chp) | |||
948 | } | 948 | } |
949 | 949 | ||
950 | 950 | ||
951 | static int pvr2_v4l2_ioctl(struct file *file, | 951 | static long pvr2_v4l2_ioctl(struct file *file, |
952 | unsigned int cmd, unsigned long arg) | 952 | unsigned int cmd, unsigned long arg) |
953 | { | 953 | { |
954 | 954 | ||