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/vino.c | |
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/vino.c')
-rw-r--r-- | drivers/media/video/vino.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/drivers/media/video/vino.c b/drivers/media/video/vino.c index ca421cc84f8f..8ec57df1904f 100644 --- a/drivers/media/video/vino.c +++ b/drivers/media/video/vino.c | |||
@@ -4024,8 +4024,7 @@ out: | |||
4024 | 4024 | ||
4025 | static int vino_open(struct inode *inode, struct file *file) | 4025 | static int vino_open(struct inode *inode, struct file *file) |
4026 | { | 4026 | { |
4027 | struct video_device *dev = video_devdata(file); | 4027 | struct vino_channel_settings *vcs = video_drvdata(file); |
4028 | struct vino_channel_settings *vcs = video_get_drvdata(dev); | ||
4029 | int ret = 0; | 4028 | int ret = 0; |
4030 | dprintk("open(): channel = %c\n", | 4029 | dprintk("open(): channel = %c\n", |
4031 | (vcs->channel == VINO_CHANNEL_A) ? 'A' : 'B'); | 4030 | (vcs->channel == VINO_CHANNEL_A) ? 'A' : 'B'); |
@@ -4056,8 +4055,7 @@ static int vino_open(struct inode *inode, struct file *file) | |||
4056 | 4055 | ||
4057 | static int vino_close(struct inode *inode, struct file *file) | 4056 | static int vino_close(struct inode *inode, struct file *file) |
4058 | { | 4057 | { |
4059 | struct video_device *dev = video_devdata(file); | 4058 | struct vino_channel_settings *vcs = video_drvdata(file); |
4060 | struct vino_channel_settings *vcs = video_get_drvdata(dev); | ||
4061 | dprintk("close():\n"); | 4059 | dprintk("close():\n"); |
4062 | 4060 | ||
4063 | mutex_lock(&vcs->mutex); | 4061 | mutex_lock(&vcs->mutex); |
@@ -4100,8 +4098,7 @@ static struct vm_operations_struct vino_vm_ops = { | |||
4100 | 4098 | ||
4101 | static int vino_mmap(struct file *file, struct vm_area_struct *vma) | 4099 | static int vino_mmap(struct file *file, struct vm_area_struct *vma) |
4102 | { | 4100 | { |
4103 | struct video_device *dev = video_devdata(file); | 4101 | struct vino_channel_settings *vcs = video_drvdata(file); |
4104 | struct vino_channel_settings *vcs = video_get_drvdata(dev); | ||
4105 | 4102 | ||
4106 | unsigned long start = vma->vm_start; | 4103 | unsigned long start = vma->vm_start; |
4107 | unsigned long size = vma->vm_end - vma->vm_start; | 4104 | unsigned long size = vma->vm_end - vma->vm_start; |
@@ -4206,8 +4203,7 @@ out: | |||
4206 | 4203 | ||
4207 | static unsigned int vino_poll(struct file *file, poll_table *pt) | 4204 | static unsigned int vino_poll(struct file *file, poll_table *pt) |
4208 | { | 4205 | { |
4209 | struct video_device *dev = video_devdata(file); | 4206 | struct vino_channel_settings *vcs = video_drvdata(file); |
4210 | struct vino_channel_settings *vcs = video_get_drvdata(dev); | ||
4211 | unsigned int outgoing; | 4207 | unsigned int outgoing; |
4212 | unsigned int ret = 0; | 4208 | unsigned int ret = 0; |
4213 | 4209 | ||
@@ -4247,8 +4243,7 @@ error: | |||
4247 | static int vino_do_ioctl(struct inode *inode, struct file *file, | 4243 | static int vino_do_ioctl(struct inode *inode, struct file *file, |
4248 | unsigned int cmd, void *arg) | 4244 | unsigned int cmd, void *arg) |
4249 | { | 4245 | { |
4250 | struct video_device *dev = video_devdata(file); | 4246 | struct vino_channel_settings *vcs = video_drvdata(file); |
4251 | struct vino_channel_settings *vcs = video_get_drvdata(dev); | ||
4252 | 4247 | ||
4253 | #ifdef VINO_DEBUG | 4248 | #ifdef VINO_DEBUG |
4254 | switch (_IOC_TYPE(cmd)) { | 4249 | switch (_IOC_TYPE(cmd)) { |
@@ -4355,8 +4350,7 @@ static int vino_do_ioctl(struct inode *inode, struct file *file, | |||
4355 | static int vino_ioctl(struct inode *inode, struct file *file, | 4350 | static int vino_ioctl(struct inode *inode, struct file *file, |
4356 | unsigned int cmd, unsigned long arg) | 4351 | unsigned int cmd, unsigned long arg) |
4357 | { | 4352 | { |
4358 | struct video_device *dev = video_devdata(file); | 4353 | struct vino_channel_settings *vcs = video_drvdata(file); |
4359 | struct vino_channel_settings *vcs = video_get_drvdata(dev); | ||
4360 | int ret; | 4354 | int ret; |
4361 | 4355 | ||
4362 | if (mutex_lock_interruptible(&vcs->mutex)) | 4356 | if (mutex_lock_interruptible(&vcs->mutex)) |