diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-21 10:58:39 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-21 12:31:49 -0400 |
commit | 8a522c916d3c3b29a38bd3c8fc3df826d22a9444 (patch) | |
tree | cf7c9752eb6fd9909e6b62dc1c048eed082d4611 /drivers/media/video/v4l2-ioctl.c | |
parent | b1f88407f3767f924cae1d521e815e568996a4ef (diff) |
V4L/DVB (9331): Remove unused inode parameter from video_ioctl2
inode is never used on video_ioctl2. Remove it and rename the function to
__video_ioctl2. This allows its usage directly as a callback at
fops.unlocked_ioctl.
Since we still need a callback with inode to be used with fops.ioctl,
this patch adds video_ioctl2() that is just a call to __video_ioctl2().
Also, this patch adds some comments about video_ioctl2 and __video_ioctl2
usage at v4l2-ioctl.h.
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 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/media/video/v4l2-ioctl.c b/drivers/media/video/v4l2-ioctl.c index 5b3e251b9396..710e1a40c422 100644 --- a/drivers/media/video/v4l2-ioctl.c +++ b/drivers/media/video/v4l2-ioctl.c | |||
@@ -1768,7 +1768,7 @@ static int __video_do_ioctl(struct file *file, | |||
1768 | return ret; | 1768 | return ret; |
1769 | } | 1769 | } |
1770 | 1770 | ||
1771 | int video_ioctl2(struct inode *inode, struct file *file, | 1771 | int __video_ioctl2(struct file *file, |
1772 | unsigned int cmd, unsigned long arg) | 1772 | unsigned int cmd, unsigned long arg) |
1773 | { | 1773 | { |
1774 | char sbuf[128]; | 1774 | char sbuf[128]; |
@@ -1860,11 +1860,11 @@ out: | |||
1860 | kfree(mbuf); | 1860 | kfree(mbuf); |
1861 | return err; | 1861 | return err; |
1862 | } | 1862 | } |
1863 | EXPORT_SYMBOL(video_ioctl2); | 1863 | EXPORT_SYMBOL(__video_ioctl2); |
1864 | 1864 | ||
1865 | long video_ioctl2_unlocked(struct file *file, | 1865 | int video_ioctl2(struct inode *inode, struct file *file, |
1866 | unsigned int cmd, unsigned long arg) | 1866 | unsigned int cmd, unsigned long arg) |
1867 | { | 1867 | { |
1868 | return video_ioctl2(file->f_path.dentry->d_inode, file, cmd, arg); | 1868 | return __video_ioctl2(file, cmd, arg); |
1869 | } | 1869 | } |
1870 | EXPORT_SYMBOL(video_ioctl2_unlocked); | 1870 | EXPORT_SYMBOL(video_ioctl2); |