diff options
Diffstat (limited to 'drivers/media/radio/radio-aimslab.c')
-rw-r--r-- | drivers/media/radio/radio-aimslab.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/drivers/media/radio/radio-aimslab.c b/drivers/media/radio/radio-aimslab.c index 62cc6874d63f..9305e958fc66 100644 --- a/drivers/media/radio/radio-aimslab.c +++ b/drivers/media/radio/radio-aimslab.c | |||
@@ -246,8 +246,7 @@ static int vidioc_querycap(struct file *file, void *priv, | |||
246 | static int vidioc_g_tuner(struct file *file, void *priv, | 246 | static int vidioc_g_tuner(struct file *file, void *priv, |
247 | struct v4l2_tuner *v) | 247 | struct v4l2_tuner *v) |
248 | { | 248 | { |
249 | struct video_device *dev = video_devdata(file); | 249 | struct rt_device *rt = video_drvdata(file); |
250 | struct rt_device *rt = video_get_drvdata(dev); | ||
251 | 250 | ||
252 | if (v->index > 0) | 251 | if (v->index > 0) |
253 | return -EINVAL; | 252 | return -EINVAL; |
@@ -274,8 +273,7 @@ static int vidioc_s_tuner(struct file *file, void *priv, | |||
274 | static int vidioc_s_frequency(struct file *file, void *priv, | 273 | static int vidioc_s_frequency(struct file *file, void *priv, |
275 | struct v4l2_frequency *f) | 274 | struct v4l2_frequency *f) |
276 | { | 275 | { |
277 | struct video_device *dev = video_devdata(file); | 276 | struct rt_device *rt = video_drvdata(file); |
278 | struct rt_device *rt = video_get_drvdata(dev); | ||
279 | 277 | ||
280 | rt->curfreq = f->frequency; | 278 | rt->curfreq = f->frequency; |
281 | rt_setfreq(rt, rt->curfreq); | 279 | rt_setfreq(rt, rt->curfreq); |
@@ -285,8 +283,7 @@ static int vidioc_s_frequency(struct file *file, void *priv, | |||
285 | static int vidioc_g_frequency(struct file *file, void *priv, | 283 | static int vidioc_g_frequency(struct file *file, void *priv, |
286 | struct v4l2_frequency *f) | 284 | struct v4l2_frequency *f) |
287 | { | 285 | { |
288 | struct video_device *dev = video_devdata(file); | 286 | struct rt_device *rt = video_drvdata(file); |
289 | struct rt_device *rt = video_get_drvdata(dev); | ||
290 | 287 | ||
291 | f->type = V4L2_TUNER_RADIO; | 288 | f->type = V4L2_TUNER_RADIO; |
292 | f->frequency = rt->curfreq; | 289 | f->frequency = rt->curfreq; |
@@ -311,8 +308,7 @@ static int vidioc_queryctrl(struct file *file, void *priv, | |||
311 | static int vidioc_g_ctrl(struct file *file, void *priv, | 308 | static int vidioc_g_ctrl(struct file *file, void *priv, |
312 | struct v4l2_control *ctrl) | 309 | struct v4l2_control *ctrl) |
313 | { | 310 | { |
314 | struct video_device *dev = video_devdata(file); | 311 | struct rt_device *rt = video_drvdata(file); |
315 | struct rt_device *rt = video_get_drvdata(dev); | ||
316 | 312 | ||
317 | switch (ctrl->id) { | 313 | switch (ctrl->id) { |
318 | case V4L2_CID_AUDIO_MUTE: | 314 | case V4L2_CID_AUDIO_MUTE: |
@@ -328,8 +324,7 @@ static int vidioc_g_ctrl(struct file *file, void *priv, | |||
328 | static int vidioc_s_ctrl(struct file *file, void *priv, | 324 | static int vidioc_s_ctrl(struct file *file, void *priv, |
329 | struct v4l2_control *ctrl) | 325 | struct v4l2_control *ctrl) |
330 | { | 326 | { |
331 | struct video_device *dev = video_devdata(file); | 327 | struct rt_device *rt = video_drvdata(file); |
332 | struct rt_device *rt = video_get_drvdata(dev); | ||
333 | 328 | ||
334 | switch (ctrl->id) { | 329 | switch (ctrl->id) { |
335 | case V4L2_CID_AUDIO_MUTE: | 330 | case V4L2_CID_AUDIO_MUTE: |