aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/radio/radio-maxiradio.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/radio/radio-maxiradio.c')
-rw-r--r--drivers/media/radio/radio-maxiradio.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/drivers/media/radio/radio-maxiradio.c b/drivers/media/radio/radio-maxiradio.c
index 9bf2acf5249..c777a17b00b 100644
--- a/drivers/media/radio/radio-maxiradio.c
+++ b/drivers/media/radio/radio-maxiradio.c
@@ -231,8 +231,7 @@ static int vidioc_querycap (struct file *file, void *priv,
231static int vidioc_g_tuner (struct file *file, void *priv, 231static int vidioc_g_tuner (struct file *file, void *priv,
232 struct v4l2_tuner *v) 232 struct v4l2_tuner *v)
233{ 233{
234 struct video_device *dev = video_devdata(file); 234 struct radio_device *card = video_drvdata(file);
235 struct radio_device *card = video_get_drvdata(dev);
236 235
237 if (v->index > 0) 236 if (v->index > 0)
238 return -EINVAL; 237 return -EINVAL;
@@ -302,8 +301,7 @@ static int vidioc_s_audio (struct file *file, void *priv,
302static int vidioc_s_frequency (struct file *file, void *priv, 301static int vidioc_s_frequency (struct file *file, void *priv,
303 struct v4l2_frequency *f) 302 struct v4l2_frequency *f)
304{ 303{
305 struct video_device *dev = video_devdata(file); 304 struct radio_device *card = video_drvdata(file);
306 struct radio_device *card = video_get_drvdata(dev);
307 305
308 if (f->frequency < FREQ_LO || f->frequency > FREQ_HI) { 306 if (f->frequency < FREQ_LO || f->frequency > FREQ_HI) {
309 dprintk(1, "radio freq (%d.%02d MHz) out of range (%d-%d)\n", 307 dprintk(1, "radio freq (%d.%02d MHz) out of range (%d-%d)\n",
@@ -324,8 +322,7 @@ static int vidioc_s_frequency (struct file *file, void *priv,
324static int vidioc_g_frequency (struct file *file, void *priv, 322static int vidioc_g_frequency (struct file *file, void *priv,
325 struct v4l2_frequency *f) 323 struct v4l2_frequency *f)
326{ 324{
327 struct video_device *dev = video_devdata(file); 325 struct radio_device *card = video_drvdata(file);
328 struct radio_device *card = video_get_drvdata(dev);
329 326
330 f->type = V4L2_TUNER_RADIO; 327 f->type = V4L2_TUNER_RADIO;
331 f->frequency = card->freq; 328 f->frequency = card->freq;
@@ -355,8 +352,7 @@ static int vidioc_queryctrl (struct file *file, void *priv,
355static int vidioc_g_ctrl (struct file *file, void *priv, 352static int vidioc_g_ctrl (struct file *file, void *priv,
356 struct v4l2_control *ctrl) 353 struct v4l2_control *ctrl)
357{ 354{
358 struct video_device *dev = video_devdata(file); 355 struct radio_device *card = video_drvdata(file);
359 struct radio_device *card = video_get_drvdata(dev);
360 356
361 switch (ctrl->id) { 357 switch (ctrl->id) {
362 case V4L2_CID_AUDIO_MUTE: 358 case V4L2_CID_AUDIO_MUTE:
@@ -370,8 +366,7 @@ static int vidioc_g_ctrl (struct file *file, void *priv,
370static int vidioc_s_ctrl (struct file *file, void *priv, 366static int vidioc_s_ctrl (struct file *file, void *priv,
371 struct v4l2_control *ctrl) 367 struct v4l2_control *ctrl)
372{ 368{
373 struct video_device *dev = video_devdata(file); 369 struct radio_device *card = video_drvdata(file);
374 struct radio_device *card = video_get_drvdata(dev);
375 370
376 switch (ctrl->id) { 371 switch (ctrl->id) {
377 case V4L2_CID_AUDIO_MUTE: 372 case V4L2_CID_AUDIO_MUTE: