aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/radio/radio-sf16fmr2.c
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/radio/radio-sf16fmr2.c
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/radio/radio-sf16fmr2.c')
-rw-r--r--drivers/media/radio/radio-sf16fmr2.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/drivers/media/radio/radio-sf16fmr2.c b/drivers/media/radio/radio-sf16fmr2.c
index 9f823150452d..b1f47c322e02 100644
--- a/drivers/media/radio/radio-sf16fmr2.c
+++ b/drivers/media/radio/radio-sf16fmr2.c
@@ -230,8 +230,7 @@ static int vidioc_g_tuner(struct file *file, void *priv,
230 struct v4l2_tuner *v) 230 struct v4l2_tuner *v)
231{ 231{
232 int mult; 232 int mult;
233 struct video_device *dev = video_devdata(file); 233 struct fmr2_device *fmr2 = video_drvdata(file);
234 struct fmr2_device *fmr2 = video_get_drvdata(dev);
235 234
236 if (v->index > 0) 235 if (v->index > 0)
237 return -EINVAL; 236 return -EINVAL;
@@ -263,8 +262,7 @@ static int vidioc_s_tuner(struct file *file, void *priv,
263static int vidioc_s_frequency(struct file *file, void *priv, 262static int vidioc_s_frequency(struct file *file, void *priv,
264 struct v4l2_frequency *f) 263 struct v4l2_frequency *f)
265{ 264{
266 struct video_device *dev = video_devdata(file); 265 struct fmr2_device *fmr2 = video_drvdata(file);
267 struct fmr2_device *fmr2 = video_get_drvdata(dev);
268 266
269 if (!(fmr2->flags & V4L2_TUNER_CAP_LOW)) 267 if (!(fmr2->flags & V4L2_TUNER_CAP_LOW))
270 f->frequency *= 1000; 268 f->frequency *= 1000;
@@ -287,8 +285,7 @@ static int vidioc_s_frequency(struct file *file, void *priv,
287static int vidioc_g_frequency(struct file *file, void *priv, 285static int vidioc_g_frequency(struct file *file, void *priv,
288 struct v4l2_frequency *f) 286 struct v4l2_frequency *f)
289{ 287{
290 struct video_device *dev = video_devdata(file); 288 struct fmr2_device *fmr2 = video_drvdata(file);
291 struct fmr2_device *fmr2 = video_get_drvdata(dev);
292 289
293 f->type = V4L2_TUNER_RADIO; 290 f->type = V4L2_TUNER_RADIO;
294 f->frequency = fmr2->curfreq; 291 f->frequency = fmr2->curfreq;
@@ -314,8 +311,7 @@ static int vidioc_queryctrl(struct file *file, void *priv,
314static int vidioc_g_ctrl(struct file *file, void *priv, 311static int vidioc_g_ctrl(struct file *file, void *priv,
315 struct v4l2_control *ctrl) 312 struct v4l2_control *ctrl)
316{ 313{
317 struct video_device *dev = video_devdata(file); 314 struct fmr2_device *fmr2 = video_drvdata(file);
318 struct fmr2_device *fmr2 = video_get_drvdata(dev);
319 315
320 switch (ctrl->id) { 316 switch (ctrl->id) {
321 case V4L2_CID_AUDIO_MUTE: 317 case V4L2_CID_AUDIO_MUTE:
@@ -331,8 +327,7 @@ static int vidioc_g_ctrl(struct file *file, void *priv,
331static int vidioc_s_ctrl(struct file *file, void *priv, 327static int vidioc_s_ctrl(struct file *file, void *priv,
332 struct v4l2_control *ctrl) 328 struct v4l2_control *ctrl)
333{ 329{
334 struct video_device *dev = video_devdata(file); 330 struct fmr2_device *fmr2 = video_drvdata(file);
335 struct fmr2_device *fmr2 = video_get_drvdata(dev);
336 331
337 switch (ctrl->id) { 332 switch (ctrl->id) {
338 case V4L2_CID_AUDIO_MUTE: 333 case V4L2_CID_AUDIO_MUTE: