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/cpia2/cpia2_v4l.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/cpia2/cpia2_v4l.c')
-rw-r--r-- | drivers/media/video/cpia2/cpia2_v4l.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/drivers/media/video/cpia2/cpia2_v4l.c b/drivers/media/video/cpia2/cpia2_v4l.c index d9de2e8e00d..3c2d7eac119 100644 --- a/drivers/media/video/cpia2/cpia2_v4l.c +++ b/drivers/media/video/cpia2/cpia2_v4l.c | |||
@@ -1572,8 +1572,7 @@ static int ioctl_dqbuf(void *arg,struct camera_data *cam, struct file *file) | |||
1572 | * cpia2_ioctl | 1572 | * cpia2_ioctl |
1573 | * | 1573 | * |
1574 | *****************************************************************************/ | 1574 | *****************************************************************************/ |
1575 | static int cpia2_do_ioctl(struct inode *inode, struct file *file, | 1575 | static int cpia2_do_ioctl(struct file *file, unsigned int cmd, void *arg) |
1576 | unsigned int ioctl_nr, void *arg) | ||
1577 | { | 1576 | { |
1578 | struct camera_data *cam = video_drvdata(file); | 1577 | struct camera_data *cam = video_drvdata(file); |
1579 | int retval = 0; | 1578 | int retval = 0; |
@@ -1591,7 +1590,7 @@ static int cpia2_do_ioctl(struct inode *inode, struct file *file, | |||
1591 | } | 1590 | } |
1592 | 1591 | ||
1593 | /* Priority check */ | 1592 | /* Priority check */ |
1594 | switch (ioctl_nr) { | 1593 | switch (cmd) { |
1595 | case VIDIOCSWIN: | 1594 | case VIDIOCSWIN: |
1596 | case VIDIOCMCAPTURE: | 1595 | case VIDIOCMCAPTURE: |
1597 | case VIDIOC_S_FMT: | 1596 | case VIDIOC_S_FMT: |
@@ -1618,7 +1617,7 @@ static int cpia2_do_ioctl(struct inode *inode, struct file *file, | |||
1618 | break; | 1617 | break; |
1619 | } | 1618 | } |
1620 | 1619 | ||
1621 | switch (ioctl_nr) { | 1620 | switch (cmd) { |
1622 | case VIDIOCGCAP: /* query capabilities */ | 1621 | case VIDIOCGCAP: /* query capabilities */ |
1623 | retval = ioctl_cap_query(arg, cam); | 1622 | retval = ioctl_cap_query(arg, cam); |
1624 | break; | 1623 | break; |
@@ -1683,7 +1682,7 @@ static int cpia2_do_ioctl(struct inode *inode, struct file *file, | |||
1683 | case VIDIOC_ENUMINPUT: | 1682 | case VIDIOC_ENUMINPUT: |
1684 | case VIDIOC_G_INPUT: | 1683 | case VIDIOC_G_INPUT: |
1685 | case VIDIOC_S_INPUT: | 1684 | case VIDIOC_S_INPUT: |
1686 | retval = ioctl_input(ioctl_nr, arg,cam); | 1685 | retval = ioctl_input(cmd, arg, cam); |
1687 | break; | 1686 | break; |
1688 | 1687 | ||
1689 | case VIDIOC_ENUM_FMT: | 1688 | case VIDIOC_ENUM_FMT: |
@@ -1843,9 +1842,9 @@ static int cpia2_do_ioctl(struct inode *inode, struct file *file, | |||
1843 | } | 1842 | } |
1844 | 1843 | ||
1845 | static int cpia2_ioctl(struct inode *inode, struct file *file, | 1844 | static int cpia2_ioctl(struct inode *inode, struct file *file, |
1846 | unsigned int ioctl_nr, unsigned long iarg) | 1845 | unsigned int cmd, unsigned long arg) |
1847 | { | 1846 | { |
1848 | return video_usercopy(inode, file, ioctl_nr, iarg, cpia2_do_ioctl); | 1847 | return video_usercopy(file, cmd, arg, cpia2_do_ioctl); |
1849 | } | 1848 | } |
1850 | 1849 | ||
1851 | /****************************************************************************** | 1850 | /****************************************************************************** |