diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-08-23 07:32:09 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-12 07:36:54 -0400 |
commit | c170ecf434bceb0e188b14a6deb3bfa3ec9ef699 (patch) | |
tree | fa62c2e14adeff72310c9a6b8cba675f3153feed /drivers/media/video/cpia2 | |
parent | bfa8a273bb91078ea193ab94c717889928f3b925 (diff) |
V4L/DVB (8788): v4l: replace video_get_drvdata(video_devdata(filp)) with video_drvdata(filp)
Use the new video_drvdata(filp) function where it is safe to do so.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/cpia2')
-rw-r--r-- | drivers/media/video/cpia2/cpia2_v4l.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/drivers/media/video/cpia2/cpia2_v4l.c b/drivers/media/video/cpia2/cpia2_v4l.c index eb9f15cd4c45..897e8d1a5c3c 100644 --- a/drivers/media/video/cpia2/cpia2_v4l.c +++ b/drivers/media/video/cpia2/cpia2_v4l.c | |||
@@ -241,8 +241,7 @@ static struct v4l2_queryctrl controls[] = { | |||
241 | *****************************************************************************/ | 241 | *****************************************************************************/ |
242 | static int cpia2_open(struct inode *inode, struct file *file) | 242 | static int cpia2_open(struct inode *inode, struct file *file) |
243 | { | 243 | { |
244 | struct video_device *dev = video_devdata(file); | 244 | struct camera_data *cam = video_drvdata(file); |
245 | struct camera_data *cam = video_get_drvdata(dev); | ||
246 | int retval = 0; | 245 | int retval = 0; |
247 | 246 | ||
248 | if (!cam) { | 247 | if (!cam) { |
@@ -357,8 +356,7 @@ static int cpia2_close(struct inode *inode, struct file *file) | |||
357 | static ssize_t cpia2_v4l_read(struct file *file, char __user *buf, size_t count, | 356 | static ssize_t cpia2_v4l_read(struct file *file, char __user *buf, size_t count, |
358 | loff_t *off) | 357 | loff_t *off) |
359 | { | 358 | { |
360 | struct video_device *dev = video_devdata(file); | 359 | struct camera_data *cam = video_drvdata(file); |
361 | struct camera_data *cam = video_get_drvdata(dev); | ||
362 | int noblock = file->f_flags&O_NONBLOCK; | 360 | int noblock = file->f_flags&O_NONBLOCK; |
363 | 361 | ||
364 | struct cpia2_fh *fh = file->private_data; | 362 | struct cpia2_fh *fh = file->private_data; |
@@ -382,9 +380,7 @@ static ssize_t cpia2_v4l_read(struct file *file, char __user *buf, size_t count, | |||
382 | *****************************************************************************/ | 380 | *****************************************************************************/ |
383 | static unsigned int cpia2_v4l_poll(struct file *filp, struct poll_table_struct *wait) | 381 | static unsigned int cpia2_v4l_poll(struct file *filp, struct poll_table_struct *wait) |
384 | { | 382 | { |
385 | struct video_device *dev = video_devdata(filp); | 383 | struct camera_data *cam = video_drvdata(filp); |
386 | struct camera_data *cam = video_get_drvdata(dev); | ||
387 | |||
388 | struct cpia2_fh *fh = filp->private_data; | 384 | struct cpia2_fh *fh = filp->private_data; |
389 | 385 | ||
390 | if(!cam) | 386 | if(!cam) |
@@ -1579,8 +1575,7 @@ static int ioctl_dqbuf(void *arg,struct camera_data *cam, struct file *file) | |||
1579 | static int cpia2_do_ioctl(struct inode *inode, struct file *file, | 1575 | static int cpia2_do_ioctl(struct inode *inode, struct file *file, |
1580 | unsigned int ioctl_nr, void *arg) | 1576 | unsigned int ioctl_nr, void *arg) |
1581 | { | 1577 | { |
1582 | struct video_device *dev = video_devdata(file); | 1578 | struct camera_data *cam = video_drvdata(file); |
1583 | struct camera_data *cam = video_get_drvdata(dev); | ||
1584 | int retval = 0; | 1579 | int retval = 0; |
1585 | 1580 | ||
1586 | if (!cam) | 1581 | if (!cam) |
@@ -1860,9 +1855,8 @@ static int cpia2_ioctl(struct inode *inode, struct file *file, | |||
1860 | *****************************************************************************/ | 1855 | *****************************************************************************/ |
1861 | static int cpia2_mmap(struct file *file, struct vm_area_struct *area) | 1856 | static int cpia2_mmap(struct file *file, struct vm_area_struct *area) |
1862 | { | 1857 | { |
1858 | struct camera_data *cam = video_drvdata(file); | ||
1863 | int retval; | 1859 | int retval; |
1864 | struct video_device *dev = video_devdata(file); | ||
1865 | struct camera_data *cam = video_get_drvdata(dev); | ||
1866 | 1860 | ||
1867 | /* Priority check */ | 1861 | /* Priority check */ |
1868 | struct cpia2_fh *fh = file->private_data; | 1862 | struct cpia2_fh *fh = file->private_data; |