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>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
bef216b7ed
commit
f473bf76c7
@@ -4011,8 +4011,7 @@ ov51x_v4l1_close(struct inode *inode, struct file *file)
|
||||
|
||||
/* Do not call this function directly! */
|
||||
static int
|
||||
ov51x_v4l1_ioctl_internal(struct inode *inode, struct file *file,
|
||||
unsigned int cmd, void *arg)
|
||||
ov51x_v4l1_ioctl_internal(struct file *file, unsigned int cmd, void *arg)
|
||||
{
|
||||
struct video_device *vdev = file->private_data;
|
||||
struct usb_ov511 *ov = video_get_drvdata(vdev);
|
||||
@@ -4461,7 +4460,7 @@ ov51x_v4l1_ioctl(struct inode *inode, struct file *file,
|
||||
if (mutex_lock_interruptible(&ov->lock))
|
||||
return -EINTR;
|
||||
|
||||
rc = video_usercopy(inode, file, cmd, arg, ov51x_v4l1_ioctl_internal);
|
||||
rc = video_usercopy(file, cmd, arg, ov51x_v4l1_ioctl_internal);
|
||||
|
||||
mutex_unlock(&ov->lock);
|
||||
return rc;
|
||||
|
Reference in New Issue
Block a user