diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-11-01 07:25:11 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-12-29 14:53:26 -0500 |
commit | f473bf76c71ca734a16f9331ce6b6e9603641888 (patch) | |
tree | 033261b06286aef5dc6cde0aa961d828e2ffae7a /drivers/media/video/se401.c | |
parent | bef216b7edb0fac356565dea4bd65131bf6f9c4a (diff) |
V4L/DVB (9503): v4l: remove inode argument from video_usercopy
The inode argument was never used. Removing it from video_usercopy
brings the function pointer type of video_usercopy in line with similar
v4l2 functions, thus simplifying several drivers.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/se401.c')
-rw-r--r-- | drivers/media/video/se401.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/media/video/se401.c b/drivers/media/video/se401.c index 044a2e94c34d..d652f25eef0e 100644 --- a/drivers/media/video/se401.c +++ b/drivers/media/video/se401.c | |||
@@ -975,8 +975,7 @@ static int se401_close(struct inode *inode, struct file *file) | |||
975 | return 0; | 975 | return 0; |
976 | } | 976 | } |
977 | 977 | ||
978 | static int se401_do_ioctl(struct inode *inode, struct file *file, | 978 | static int se401_do_ioctl(struct file *file, unsigned int cmd, void *arg) |
979 | unsigned int cmd, void *arg) | ||
980 | { | 979 | { |
981 | struct video_device *vdev = file->private_data; | 980 | struct video_device *vdev = file->private_data; |
982 | struct usb_se401 *se401 = (struct usb_se401 *)vdev; | 981 | struct usb_se401 *se401 = (struct usb_se401 *)vdev; |
@@ -1142,7 +1141,7 @@ static int se401_do_ioctl(struct inode *inode, struct file *file, | |||
1142 | static int se401_ioctl(struct inode *inode, struct file *file, | 1141 | static int se401_ioctl(struct inode *inode, struct file *file, |
1143 | unsigned int cmd, unsigned long arg) | 1142 | unsigned int cmd, unsigned long arg) |
1144 | { | 1143 | { |
1145 | return video_usercopy(inode, file, cmd, arg, se401_do_ioctl); | 1144 | return video_usercopy(file, cmd, arg, se401_do_ioctl); |
1146 | } | 1145 | } |
1147 | 1146 | ||
1148 | static ssize_t se401_read(struct file *file, char __user *buf, | 1147 | static ssize_t se401_read(struct file *file, char __user *buf, |