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/radio/radio-si470x.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/radio/radio-si470x.c')
-rw-r--r-- | drivers/media/radio/radio-si470x.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/media/radio/radio-si470x.c b/drivers/media/radio/radio-si470x.c index 337d55793836..f6cedcd3ab97 100644 --- a/drivers/media/radio/radio-si470x.c +++ b/drivers/media/radio/radio-si470x.c | |||
@@ -986,7 +986,7 @@ static void si470x_work(struct work_struct *work) | |||
986 | static ssize_t si470x_fops_read(struct file *file, char __user *buf, | 986 | static ssize_t si470x_fops_read(struct file *file, char __user *buf, |
987 | size_t count, loff_t *ppos) | 987 | size_t count, loff_t *ppos) |
988 | { | 988 | { |
989 | struct si470x_device *radio = video_get_drvdata(video_devdata(file)); | 989 | struct si470x_device *radio = video_drvdata(file); |
990 | int retval = 0; | 990 | int retval = 0; |
991 | unsigned int block_count = 0; | 991 | unsigned int block_count = 0; |
992 | 992 | ||
@@ -1047,7 +1047,7 @@ done: | |||
1047 | static unsigned int si470x_fops_poll(struct file *file, | 1047 | static unsigned int si470x_fops_poll(struct file *file, |
1048 | struct poll_table_struct *pts) | 1048 | struct poll_table_struct *pts) |
1049 | { | 1049 | { |
1050 | struct si470x_device *radio = video_get_drvdata(video_devdata(file)); | 1050 | struct si470x_device *radio = video_drvdata(file); |
1051 | int retval = 0; | 1051 | int retval = 0; |
1052 | 1052 | ||
1053 | /* switch on rds reception */ | 1053 | /* switch on rds reception */ |
@@ -1071,7 +1071,7 @@ static unsigned int si470x_fops_poll(struct file *file, | |||
1071 | */ | 1071 | */ |
1072 | static int si470x_fops_open(struct inode *inode, struct file *file) | 1072 | static int si470x_fops_open(struct inode *inode, struct file *file) |
1073 | { | 1073 | { |
1074 | struct si470x_device *radio = video_get_drvdata(video_devdata(file)); | 1074 | struct si470x_device *radio = video_drvdata(file); |
1075 | int retval; | 1075 | int retval; |
1076 | 1076 | ||
1077 | lock_kernel(); | 1077 | lock_kernel(); |
@@ -1101,7 +1101,7 @@ done: | |||
1101 | */ | 1101 | */ |
1102 | static int si470x_fops_release(struct inode *inode, struct file *file) | 1102 | static int si470x_fops_release(struct inode *inode, struct file *file) |
1103 | { | 1103 | { |
1104 | struct si470x_device *radio = video_get_drvdata(video_devdata(file)); | 1104 | struct si470x_device *radio = video_drvdata(file); |
1105 | int retval = 0; | 1105 | int retval = 0; |
1106 | 1106 | ||
1107 | /* safety check */ | 1107 | /* safety check */ |
@@ -1284,7 +1284,7 @@ done: | |||
1284 | static int si470x_vidioc_g_ctrl(struct file *file, void *priv, | 1284 | static int si470x_vidioc_g_ctrl(struct file *file, void *priv, |
1285 | struct v4l2_control *ctrl) | 1285 | struct v4l2_control *ctrl) |
1286 | { | 1286 | { |
1287 | struct si470x_device *radio = video_get_drvdata(video_devdata(file)); | 1287 | struct si470x_device *radio = video_drvdata(file); |
1288 | int retval = 0; | 1288 | int retval = 0; |
1289 | 1289 | ||
1290 | /* safety checks */ | 1290 | /* safety checks */ |
@@ -1320,7 +1320,7 @@ done: | |||
1320 | static int si470x_vidioc_s_ctrl(struct file *file, void *priv, | 1320 | static int si470x_vidioc_s_ctrl(struct file *file, void *priv, |
1321 | struct v4l2_control *ctrl) | 1321 | struct v4l2_control *ctrl) |
1322 | { | 1322 | { |
1323 | struct si470x_device *radio = video_get_drvdata(video_devdata(file)); | 1323 | struct si470x_device *radio = video_drvdata(file); |
1324 | int retval = 0; | 1324 | int retval = 0; |
1325 | 1325 | ||
1326 | /* safety checks */ | 1326 | /* safety checks */ |
@@ -1407,7 +1407,7 @@ done: | |||
1407 | static int si470x_vidioc_g_tuner(struct file *file, void *priv, | 1407 | static int si470x_vidioc_g_tuner(struct file *file, void *priv, |
1408 | struct v4l2_tuner *tuner) | 1408 | struct v4l2_tuner *tuner) |
1409 | { | 1409 | { |
1410 | struct si470x_device *radio = video_get_drvdata(video_devdata(file)); | 1410 | struct si470x_device *radio = video_drvdata(file); |
1411 | int retval = 0; | 1411 | int retval = 0; |
1412 | 1412 | ||
1413 | /* safety checks */ | 1413 | /* safety checks */ |
@@ -1473,7 +1473,7 @@ done: | |||
1473 | static int si470x_vidioc_s_tuner(struct file *file, void *priv, | 1473 | static int si470x_vidioc_s_tuner(struct file *file, void *priv, |
1474 | struct v4l2_tuner *tuner) | 1474 | struct v4l2_tuner *tuner) |
1475 | { | 1475 | { |
1476 | struct si470x_device *radio = video_get_drvdata(video_devdata(file)); | 1476 | struct si470x_device *radio = video_drvdata(file); |
1477 | int retval = 0; | 1477 | int retval = 0; |
1478 | 1478 | ||
1479 | /* safety checks */ | 1479 | /* safety checks */ |
@@ -1507,7 +1507,7 @@ done: | |||
1507 | static int si470x_vidioc_g_frequency(struct file *file, void *priv, | 1507 | static int si470x_vidioc_g_frequency(struct file *file, void *priv, |
1508 | struct v4l2_frequency *freq) | 1508 | struct v4l2_frequency *freq) |
1509 | { | 1509 | { |
1510 | struct si470x_device *radio = video_get_drvdata(video_devdata(file)); | 1510 | struct si470x_device *radio = video_drvdata(file); |
1511 | int retval = 0; | 1511 | int retval = 0; |
1512 | 1512 | ||
1513 | /* safety checks */ | 1513 | /* safety checks */ |
@@ -1536,7 +1536,7 @@ done: | |||
1536 | static int si470x_vidioc_s_frequency(struct file *file, void *priv, | 1536 | static int si470x_vidioc_s_frequency(struct file *file, void *priv, |
1537 | struct v4l2_frequency *freq) | 1537 | struct v4l2_frequency *freq) |
1538 | { | 1538 | { |
1539 | struct si470x_device *radio = video_get_drvdata(video_devdata(file)); | 1539 | struct si470x_device *radio = video_drvdata(file); |
1540 | int retval = 0; | 1540 | int retval = 0; |
1541 | 1541 | ||
1542 | /* safety checks */ | 1542 | /* safety checks */ |
@@ -1565,7 +1565,7 @@ done: | |||
1565 | static int si470x_vidioc_s_hw_freq_seek(struct file *file, void *priv, | 1565 | static int si470x_vidioc_s_hw_freq_seek(struct file *file, void *priv, |
1566 | struct v4l2_hw_freq_seek *seek) | 1566 | struct v4l2_hw_freq_seek *seek) |
1567 | { | 1567 | { |
1568 | struct si470x_device *radio = video_get_drvdata(video_devdata(file)); | 1568 | struct si470x_device *radio = video_drvdata(file); |
1569 | int retval = 0; | 1569 | int retval = 0; |
1570 | 1570 | ||
1571 | /* safety checks */ | 1571 | /* safety checks */ |