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/saa5246a.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/saa5246a.c')
-rw-r--r-- | drivers/media/video/saa5246a.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/drivers/media/video/saa5246a.c b/drivers/media/video/saa5246a.c index 0178b49da0c1..ff81049e936d 100644 --- a/drivers/media/video/saa5246a.c +++ b/drivers/media/video/saa5246a.c | |||
@@ -149,6 +149,7 @@ static int saa5246a_probe(struct i2c_adapter *adap) | |||
149 | static int saa5246a_detach(struct i2c_client *client) | 149 | static int saa5246a_detach(struct i2c_client *client) |
150 | { | 150 | { |
151 | struct video_device *vd = i2c_get_clientdata(client); | 151 | struct video_device *vd = i2c_get_clientdata(client); |
152 | |||
152 | i2c_detach_client(client); | 153 | i2c_detach_client(client); |
153 | video_unregister_device(vd); | 154 | video_unregister_device(vd); |
154 | kfree(video_get_drvdata(vd)); | 155 | kfree(video_get_drvdata(vd)); |
@@ -581,8 +582,7 @@ static inline int saa5246a_stop_dau(struct saa5246a_device *t, | |||
581 | static int do_saa5246a_ioctl(struct inode *inode, struct file *file, | 582 | static int do_saa5246a_ioctl(struct inode *inode, struct file *file, |
582 | unsigned int cmd, void *arg) | 583 | unsigned int cmd, void *arg) |
583 | { | 584 | { |
584 | struct video_device *vd = video_devdata(file); | 585 | struct saa5246a_device *t = video_drvdata(file); |
585 | struct saa5246a_device *t = video_get_drvdata(vd); | ||
586 | 586 | ||
587 | switch(cmd) | 587 | switch(cmd) |
588 | { | 588 | { |
@@ -723,8 +723,7 @@ static inline unsigned int vtx_fix_command(unsigned int cmd) | |||
723 | static int saa5246a_ioctl(struct inode *inode, struct file *file, | 723 | static int saa5246a_ioctl(struct inode *inode, struct file *file, |
724 | unsigned int cmd, unsigned long arg) | 724 | unsigned int cmd, unsigned long arg) |
725 | { | 725 | { |
726 | struct video_device *vd = video_devdata(file); | 726 | struct saa5246a_device *t = video_drvdata(file); |
727 | struct saa5246a_device *t = video_get_drvdata(vd); | ||
728 | int err; | 727 | int err; |
729 | 728 | ||
730 | cmd = vtx_fix_command(cmd); | 729 | cmd = vtx_fix_command(cmd); |
@@ -736,8 +735,7 @@ static int saa5246a_ioctl(struct inode *inode, struct file *file, | |||
736 | 735 | ||
737 | static int saa5246a_open(struct inode *inode, struct file *file) | 736 | static int saa5246a_open(struct inode *inode, struct file *file) |
738 | { | 737 | { |
739 | struct video_device *vd = video_devdata(file); | 738 | struct saa5246a_device *t = video_drvdata(file); |
740 | struct saa5246a_device *t = video_get_drvdata(vd); | ||
741 | 739 | ||
742 | if (t->client == NULL) | 740 | if (t->client == NULL) |
743 | return -ENODEV; | 741 | return -ENODEV; |
@@ -779,8 +777,7 @@ static int saa5246a_open(struct inode *inode, struct file *file) | |||
779 | 777 | ||
780 | static int saa5246a_release(struct inode *inode, struct file *file) | 778 | static int saa5246a_release(struct inode *inode, struct file *file) |
781 | { | 779 | { |
782 | struct video_device *vd = video_devdata(file); | 780 | struct saa5246a_device *t = video_drvdata(file); |
783 | struct saa5246a_device *t = video_get_drvdata(vd); | ||
784 | 781 | ||
785 | /* Stop all acquisition circuits. */ | 782 | /* Stop all acquisition circuits. */ |
786 | i2c_senddata(t, SAA5246A_REGISTER_R1, | 783 | i2c_senddata(t, SAA5246A_REGISTER_R1, |