diff options
Diffstat (limited to 'drivers/media/radio/radio-sf16fmr2.c')
-rw-r--r-- | drivers/media/radio/radio-sf16fmr2.c | 15 |
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, | |||
263 | static int vidioc_s_frequency(struct file *file, void *priv, | 262 | static 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, | |||
287 | static int vidioc_g_frequency(struct file *file, void *priv, | 285 | static 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, | |||
314 | static int vidioc_g_ctrl(struct file *file, void *priv, | 311 | static 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, | |||
331 | static int vidioc_s_ctrl(struct file *file, void *priv, | 327 | static 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: |