diff options
Diffstat (limited to 'drivers/media/radio/radio-zoltrix.c')
-rw-r--r-- | drivers/media/radio/radio-zoltrix.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/drivers/media/radio/radio-zoltrix.c b/drivers/media/radio/radio-zoltrix.c index 3a9a7772ae51..f75da63b1634 100644 --- a/drivers/media/radio/radio-zoltrix.c +++ b/drivers/media/radio/radio-zoltrix.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 zol_device *zol = video_drvdata(file); |
250 | struct zol_device *zol = video_get_drvdata(dev); | ||
251 | 250 | ||
252 | if (v->index > 0) | 251 | if (v->index > 0) |
253 | return -EINVAL; | 252 | return -EINVAL; |
@@ -277,8 +276,7 @@ static int vidioc_s_tuner(struct file *file, void *priv, | |||
277 | static int vidioc_s_frequency(struct file *file, void *priv, | 276 | static int vidioc_s_frequency(struct file *file, void *priv, |
278 | struct v4l2_frequency *f) | 277 | struct v4l2_frequency *f) |
279 | { | 278 | { |
280 | struct video_device *dev = video_devdata(file); | 279 | struct zol_device *zol = video_drvdata(file); |
281 | struct zol_device *zol = video_get_drvdata(dev); | ||
282 | 280 | ||
283 | zol->curfreq = f->frequency; | 281 | zol->curfreq = f->frequency; |
284 | zol_setfreq(zol, zol->curfreq); | 282 | zol_setfreq(zol, zol->curfreq); |
@@ -288,8 +286,7 @@ static int vidioc_s_frequency(struct file *file, void *priv, | |||
288 | static int vidioc_g_frequency(struct file *file, void *priv, | 286 | static int vidioc_g_frequency(struct file *file, void *priv, |
289 | struct v4l2_frequency *f) | 287 | struct v4l2_frequency *f) |
290 | { | 288 | { |
291 | struct video_device *dev = video_devdata(file); | 289 | struct zol_device *zol = video_drvdata(file); |
292 | struct zol_device *zol = video_get_drvdata(dev); | ||
293 | 290 | ||
294 | f->type = V4L2_TUNER_RADIO; | 291 | f->type = V4L2_TUNER_RADIO; |
295 | f->frequency = zol->curfreq; | 292 | f->frequency = zol->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 zol_device *zol = video_drvdata(file); |
318 | struct zol_device *zol = 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 zol_device *zol = video_drvdata(file); |
335 | struct zol_device *zol = 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: |