diff options
Diffstat (limited to 'drivers/media/video/zc0301')
-rw-r--r-- | drivers/media/video/zc0301/zc0301_core.c | 14 |
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) | |||
759 | static ssize_t | 759 | static ssize_t |
760 | zc0301_read(struct file* filp, char __user * buf, size_t count, loff_t* f_pos) | 760 | zc0301_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 | ||
867 | static unsigned int zc0301_poll(struct file *filp, poll_table *wait) | 867 | static 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 | ||
942 | static int zc0301_mmap(struct file* filp, struct vm_area_struct *vma) | 942 | static 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) | |||
1796 | static int zc0301_ioctl_v4l2(struct inode* inode, struct file* filp, | 1796 | static 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, | |||
1891 | static int zc0301_ioctl(struct inode* inode, struct file* filp, | 1891 | static 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)) |