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/bw-qcam.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/bw-qcam.c')
-rw-r--r-- | drivers/media/video/bw-qcam.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/media/video/bw-qcam.c b/drivers/media/video/bw-qcam.c index ace4ff9ea023..17f80d03f38e 100644 --- a/drivers/media/video/bw-qcam.c +++ b/drivers/media/video/bw-qcam.c | |||
@@ -706,8 +706,7 @@ static long qc_capture(struct qcam_device * q, char __user *buf, unsigned long l | |||
706 | * Video4linux interfacing | 706 | * Video4linux interfacing |
707 | */ | 707 | */ |
708 | 708 | ||
709 | static int qcam_do_ioctl(struct inode *inode, struct file *file, | 709 | static int qcam_do_ioctl(struct file *file, unsigned int cmd, void *arg) |
710 | unsigned int cmd, void *arg) | ||
711 | { | 710 | { |
712 | struct video_device *dev = video_devdata(file); | 711 | struct video_device *dev = video_devdata(file); |
713 | struct qcam_device *qcam=(struct qcam_device *)dev; | 712 | struct qcam_device *qcam=(struct qcam_device *)dev; |
@@ -867,7 +866,7 @@ static int qcam_do_ioctl(struct inode *inode, struct file *file, | |||
867 | static int qcam_ioctl(struct inode *inode, struct file *file, | 866 | static int qcam_ioctl(struct inode *inode, struct file *file, |
868 | unsigned int cmd, unsigned long arg) | 867 | unsigned int cmd, unsigned long arg) |
869 | { | 868 | { |
870 | return video_usercopy(inode, file, cmd, arg, qcam_do_ioctl); | 869 | return video_usercopy(file, cmd, arg, qcam_do_ioctl); |
871 | } | 870 | } |
872 | 871 | ||
873 | static ssize_t qcam_read(struct file *file, char __user *buf, | 872 | static ssize_t qcam_read(struct file *file, char __user *buf, |