aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/et61x251
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/et61x251
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/et61x251')
-rw-r--r--drivers/media/video/et61x251/et61x251_core.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/media/video/et61x251/et61x251_core.c b/drivers/media/video/et61x251/et61x251_core.c
index 8db2a05bf9c5..7a85c41b0eea 100644
--- a/drivers/media/video/et61x251/et61x251_core.c
+++ b/drivers/media/video/et61x251/et61x251_core.c
@@ -1214,7 +1214,7 @@ static int et61x251_open(struct inode* inode, struct file* filp)
1214 if (!down_read_trylock(&et61x251_dev_lock)) 1214 if (!down_read_trylock(&et61x251_dev_lock))
1215 return -ERESTARTSYS; 1215 return -ERESTARTSYS;
1216 1216
1217 cam = video_get_drvdata(video_devdata(filp)); 1217 cam = video_drvdata(filp);
1218 1218
1219 if (wait_for_completion_interruptible(&cam->probe)) { 1219 if (wait_for_completion_interruptible(&cam->probe)) {
1220 up_read(&et61x251_dev_lock); 1220 up_read(&et61x251_dev_lock);
@@ -1297,7 +1297,7 @@ static int et61x251_release(struct inode* inode, struct file* filp)
1297 1297
1298 down_write(&et61x251_dev_lock); 1298 down_write(&et61x251_dev_lock);
1299 1299
1300 cam = video_get_drvdata(video_devdata(filp)); 1300 cam = video_drvdata(filp);
1301 1301
1302 et61x251_stop_transfer(cam); 1302 et61x251_stop_transfer(cam);
1303 et61x251_release_buffers(cam); 1303 et61x251_release_buffers(cam);
@@ -1318,7 +1318,7 @@ static ssize_t
1318et61x251_read(struct file* filp, char __user * buf, 1318et61x251_read(struct file* filp, char __user * buf,
1319 size_t count, loff_t* f_pos) 1319 size_t count, loff_t* f_pos)
1320{ 1320{
1321 struct et61x251_device* cam = video_get_drvdata(video_devdata(filp)); 1321 struct et61x251_device *cam = video_drvdata(filp);
1322 struct et61x251_frame_t* f, * i; 1322 struct et61x251_frame_t* f, * i;
1323 unsigned long lock_flags; 1323 unsigned long lock_flags;
1324 long timeout; 1324 long timeout;
@@ -1426,7 +1426,7 @@ exit:
1426 1426
1427static unsigned int et61x251_poll(struct file *filp, poll_table *wait) 1427static unsigned int et61x251_poll(struct file *filp, poll_table *wait)
1428{ 1428{
1429 struct et61x251_device* cam = video_get_drvdata(video_devdata(filp)); 1429 struct et61x251_device *cam = video_drvdata(filp);
1430 struct et61x251_frame_t* f; 1430 struct et61x251_frame_t* f;
1431 unsigned long lock_flags; 1431 unsigned long lock_flags;
1432 unsigned int mask = 0; 1432 unsigned int mask = 0;
@@ -1502,7 +1502,7 @@ static struct vm_operations_struct et61x251_vm_ops = {
1502 1502
1503static int et61x251_mmap(struct file* filp, struct vm_area_struct *vma) 1503static int et61x251_mmap(struct file* filp, struct vm_area_struct *vma)
1504{ 1504{
1505 struct et61x251_device* cam = video_get_drvdata(video_devdata(filp)); 1505 struct et61x251_device *cam = video_drvdata(filp);
1506 unsigned long size = vma->vm_end - vma->vm_start, 1506 unsigned long size = vma->vm_end - vma->vm_start,
1507 start = vma->vm_start; 1507 start = vma->vm_start;
1508 void *pos; 1508 void *pos;
@@ -2395,7 +2395,7 @@ et61x251_vidioc_s_parm(struct et61x251_device* cam, void __user * arg)
2395static int et61x251_ioctl_v4l2(struct inode* inode, struct file* filp, 2395static int et61x251_ioctl_v4l2(struct inode* inode, struct file* filp,
2396 unsigned int cmd, void __user * arg) 2396 unsigned int cmd, void __user * arg)
2397{ 2397{
2398 struct et61x251_device* cam = video_get_drvdata(video_devdata(filp)); 2398 struct et61x251_device *cam = video_drvdata(filp);
2399 2399
2400 switch (cmd) { 2400 switch (cmd) {
2401 2401
@@ -2490,7 +2490,7 @@ static int et61x251_ioctl_v4l2(struct inode* inode, struct file* filp,
2490static int et61x251_ioctl(struct inode* inode, struct file* filp, 2490static int et61x251_ioctl(struct inode* inode, struct file* filp,
2491 unsigned int cmd, unsigned long arg) 2491 unsigned int cmd, unsigned long arg)
2492{ 2492{
2493 struct et61x251_device* cam = video_get_drvdata(video_devdata(filp)); 2493 struct et61x251_device *cam = video_drvdata(filp);
2494 int err = 0; 2494 int err = 0;
2495 2495
2496 if (mutex_lock_interruptible(&cam->fileop_mutex)) 2496 if (mutex_lock_interruptible(&cam->fileop_mutex))