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/saa5246a.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/saa5246a.c')
-rw-r--r-- | drivers/media/video/saa5246a.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/media/video/saa5246a.c b/drivers/media/video/saa5246a.c index 9d4582651467..f159441e9375 100644 --- a/drivers/media/video/saa5246a.c +++ b/drivers/media/video/saa5246a.c | |||
@@ -804,8 +804,7 @@ static inline int saa5246a_stop_dau(struct saa5246a_device *t, | |||
804 | * | 804 | * |
805 | * Returns 0 if successful | 805 | * Returns 0 if successful |
806 | */ | 806 | */ |
807 | static int do_saa5246a_ioctl(struct inode *inode, struct file *file, | 807 | static int do_saa5246a_ioctl(struct file *file, unsigned int cmd, void *arg) |
808 | unsigned int cmd, void *arg) | ||
809 | { | 808 | { |
810 | struct saa5246a_device *t = video_drvdata(file); | 809 | struct saa5246a_device *t = video_drvdata(file); |
811 | 810 | ||
@@ -953,7 +952,7 @@ static int saa5246a_ioctl(struct inode *inode, struct file *file, | |||
953 | 952 | ||
954 | cmd = vtx_fix_command(cmd); | 953 | cmd = vtx_fix_command(cmd); |
955 | mutex_lock(&t->lock); | 954 | mutex_lock(&t->lock); |
956 | err = video_usercopy(inode, file, cmd, arg, do_saa5246a_ioctl); | 955 | err = video_usercopy(file, cmd, arg, do_saa5246a_ioctl); |
957 | mutex_unlock(&t->lock); | 956 | mutex_unlock(&t->lock); |
958 | return err; | 957 | return err; |
959 | } | 958 | } |