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/v4l2-ioctl.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/v4l2-ioctl.c')
-rw-r--r-- | drivers/media/video/v4l2-ioctl.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/media/video/v4l2-ioctl.c b/drivers/media/video/v4l2-ioctl.c index eef5814aebe5..0e648cb3b399 100644 --- a/drivers/media/video/v4l2-ioctl.c +++ b/drivers/media/video/v4l2-ioctl.c | |||
@@ -393,10 +393,8 @@ video_fix_command(unsigned int cmd) | |||
393 | * Obsolete usercopy function - Should be removed soon | 393 | * Obsolete usercopy function - Should be removed soon |
394 | */ | 394 | */ |
395 | int | 395 | int |
396 | video_usercopy(struct inode *inode, struct file *file, | 396 | video_usercopy(struct file *file, unsigned int cmd, unsigned long arg, |
397 | unsigned int cmd, unsigned long arg, | 397 | v4l2_kioctl func) |
398 | int (*func)(struct inode *inode, struct file *file, | ||
399 | unsigned int cmd, void *arg)) | ||
400 | { | 398 | { |
401 | char sbuf[128]; | 399 | char sbuf[128]; |
402 | void *mbuf = NULL; | 400 | void *mbuf = NULL; |
@@ -458,7 +456,7 @@ video_usercopy(struct inode *inode, struct file *file, | |||
458 | } | 456 | } |
459 | 457 | ||
460 | /* call driver */ | 458 | /* call driver */ |
461 | err = func(inode, file, cmd, parg); | 459 | err = func(file, cmd, parg); |
462 | if (err == -ENOIOCTLCMD) | 460 | if (err == -ENOIOCTLCMD) |
463 | err = -EINVAL; | 461 | err = -EINVAL; |
464 | if (is_ext_ctrl) { | 462 | if (is_ext_ctrl) { |