aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/zc0301
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-08-23 07:32:09 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-10-12 07:36:54 -0400
commitc170ecf434bceb0e188b14a6deb3bfa3ec9ef699 (patch)
treefa62c2e14adeff72310c9a6b8cba675f3153feed /drivers/media/video/zc0301
parentbfa8a273bb91078ea193ab94c717889928f3b925 (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/zc0301')
-rw-r--r--drivers/media/video/zc0301/zc0301_core.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/media/video/zc0301/zc0301_core.c b/drivers/media/video/zc0301/zc0301_core.c
index 0c3287734c93..6a0902bcba6b 100644
--- a/drivers/media/video/zc0301/zc0301_core.c
+++ b/drivers/media/video/zc0301/zc0301_core.c
@@ -657,7 +657,7 @@ static int zc0301_open(struct inode* inode, struct file* filp)
657 if (!down_read_trylock(&zc0301_dev_lock)) 657 if (!down_read_trylock(&zc0301_dev_lock))
658 return -EAGAIN; 658 return -EAGAIN;
659 659
660 cam = video_get_drvdata(video_devdata(filp)); 660 cam = video_drvdata(filp);
661 661
662 if (wait_for_completion_interruptible(&cam->probe)) { 662 if (wait_for_completion_interruptible(&cam->probe)) {
663 up_read(&zc0301_dev_lock); 663 up_read(&zc0301_dev_lock);
@@ -739,7 +739,7 @@ static int zc0301_release(struct inode* inode, struct file* filp)
739 739
740 down_write(&zc0301_dev_lock); 740 down_write(&zc0301_dev_lock);
741 741
742 cam = video_get_drvdata(video_devdata(filp)); 742 cam = video_drvdata(filp);
743 743
744 zc0301_stop_transfer(cam); 744 zc0301_stop_transfer(cam);
745 zc0301_release_buffers(cam); 745 zc0301_release_buffers(cam);
@@ -759,7 +759,7 @@ static int zc0301_release(struct inode* inode, struct file* filp)
759static ssize_t 759static ssize_t
760zc0301_read(struct file* filp, char __user * buf, size_t count, loff_t* f_pos) 760zc0301_read(struct file* filp, char __user * buf, size_t count, loff_t* f_pos)
761{ 761{
762 struct zc0301_device* cam = video_get_drvdata(video_devdata(filp)); 762 struct zc0301_device *cam = video_drvdata(filp);
763 struct zc0301_frame_t* f, * i; 763 struct zc0301_frame_t* f, * i;
764 unsigned long lock_flags; 764 unsigned long lock_flags;
765 long timeout; 765 long timeout;
@@ -866,7 +866,7 @@ exit:
866 866
867static unsigned int zc0301_poll(struct file *filp, poll_table *wait) 867static unsigned int zc0301_poll(struct file *filp, poll_table *wait)
868{ 868{
869 struct zc0301_device* cam = video_get_drvdata(video_devdata(filp)); 869 struct zc0301_device *cam = video_drvdata(filp);
870 struct zc0301_frame_t* f; 870 struct zc0301_frame_t* f;
871 unsigned long lock_flags; 871 unsigned long lock_flags;
872 unsigned int mask = 0; 872 unsigned int mask = 0;
@@ -941,7 +941,7 @@ static struct vm_operations_struct zc0301_vm_ops = {
941 941
942static int zc0301_mmap(struct file* filp, struct vm_area_struct *vma) 942static int zc0301_mmap(struct file* filp, struct vm_area_struct *vma)
943{ 943{
944 struct zc0301_device* cam = video_get_drvdata(video_devdata(filp)); 944 struct zc0301_device *cam = video_drvdata(filp);
945 unsigned long size = vma->vm_end - vma->vm_start, 945 unsigned long size = vma->vm_end - vma->vm_start,
946 start = vma->vm_start; 946 start = vma->vm_start;
947 void *pos; 947 void *pos;
@@ -1796,7 +1796,7 @@ zc0301_vidioc_s_parm(struct zc0301_device* cam, void __user * arg)
1796static int zc0301_ioctl_v4l2(struct inode* inode, struct file* filp, 1796static int zc0301_ioctl_v4l2(struct inode* inode, struct file* filp,
1797 unsigned int cmd, void __user * arg) 1797 unsigned int cmd, void __user * arg)
1798{ 1798{
1799 struct zc0301_device* cam = video_get_drvdata(video_devdata(filp)); 1799 struct zc0301_device *cam = video_drvdata(filp);
1800 1800
1801 switch (cmd) { 1801 switch (cmd) {
1802 1802
@@ -1891,7 +1891,7 @@ static int zc0301_ioctl_v4l2(struct inode* inode, struct file* filp,
1891static int zc0301_ioctl(struct inode* inode, struct file* filp, 1891static int zc0301_ioctl(struct inode* inode, struct file* filp,
1892 unsigned int cmd, unsigned long arg) 1892 unsigned int cmd, unsigned long arg)
1893{ 1893{
1894 struct zc0301_device* cam = video_get_drvdata(video_devdata(filp)); 1894 struct zc0301_device *cam = video_drvdata(filp);
1895 int err = 0; 1895 int err = 0;
1896 1896
1897 if (mutex_lock_interruptible(&cam->fileop_mutex)) 1897 if (mutex_lock_interruptible(&cam->fileop_mutex))