diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2008-08-23 07:32:09 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-12 07:36:54 -0400 |
commit | c170ecf434bceb0e188b14a6deb3bfa3ec9ef699 (patch) | |
tree | fa62c2e14adeff72310c9a6b8cba675f3153feed /drivers/media/radio/radio-zoltrix.c | |
parent | bfa8a273bb91078ea193ab94c717889928f3b925 (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-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: |