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-terratec.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-terratec.c')
-rw-r--r-- | drivers/media/radio/radio-terratec.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/drivers/media/radio/radio-terratec.c b/drivers/media/radio/radio-terratec.c index 0bc9af686ad7..0abb186a9473 100644 --- a/drivers/media/radio/radio-terratec.c +++ b/drivers/media/radio/radio-terratec.c | |||
@@ -221,8 +221,7 @@ static int vidioc_querycap(struct file *file, void *priv, | |||
221 | static int vidioc_g_tuner(struct file *file, void *priv, | 221 | static int vidioc_g_tuner(struct file *file, void *priv, |
222 | struct v4l2_tuner *v) | 222 | struct v4l2_tuner *v) |
223 | { | 223 | { |
224 | struct video_device *dev = video_devdata(file); | 224 | struct tt_device *tt = video_drvdata(file); |
225 | struct tt_device *tt = video_get_drvdata(dev); | ||
226 | 225 | ||
227 | if (v->index > 0) | 226 | if (v->index > 0) |
228 | return -EINVAL; | 227 | return -EINVAL; |
@@ -249,8 +248,7 @@ static int vidioc_s_tuner(struct file *file, void *priv, | |||
249 | static int vidioc_s_frequency(struct file *file, void *priv, | 248 | static int vidioc_s_frequency(struct file *file, void *priv, |
250 | struct v4l2_frequency *f) | 249 | struct v4l2_frequency *f) |
251 | { | 250 | { |
252 | struct video_device *dev = video_devdata(file); | 251 | struct tt_device *tt = video_drvdata(file); |
253 | struct tt_device *tt = video_get_drvdata(dev); | ||
254 | 252 | ||
255 | tt->curfreq = f->frequency; | 253 | tt->curfreq = f->frequency; |
256 | tt_setfreq(tt, tt->curfreq); | 254 | tt_setfreq(tt, tt->curfreq); |
@@ -260,8 +258,7 @@ static int vidioc_s_frequency(struct file *file, void *priv, | |||
260 | static int vidioc_g_frequency(struct file *file, void *priv, | 258 | static int vidioc_g_frequency(struct file *file, void *priv, |
261 | struct v4l2_frequency *f) | 259 | struct v4l2_frequency *f) |
262 | { | 260 | { |
263 | struct video_device *dev = video_devdata(file); | 261 | struct tt_device *tt = video_drvdata(file); |
264 | struct tt_device *tt = video_get_drvdata(dev); | ||
265 | 262 | ||
266 | f->type = V4L2_TUNER_RADIO; | 263 | f->type = V4L2_TUNER_RADIO; |
267 | f->frequency = tt->curfreq; | 264 | f->frequency = tt->curfreq; |
@@ -286,8 +283,7 @@ static int vidioc_queryctrl(struct file *file, void *priv, | |||
286 | static int vidioc_g_ctrl(struct file *file, void *priv, | 283 | static int vidioc_g_ctrl(struct file *file, void *priv, |
287 | struct v4l2_control *ctrl) | 284 | struct v4l2_control *ctrl) |
288 | { | 285 | { |
289 | struct video_device *dev = video_devdata(file); | 286 | struct tt_device *tt = video_drvdata(file); |
290 | struct tt_device *tt = video_get_drvdata(dev); | ||
291 | 287 | ||
292 | switch (ctrl->id) { | 288 | switch (ctrl->id) { |
293 | case V4L2_CID_AUDIO_MUTE: | 289 | case V4L2_CID_AUDIO_MUTE: |
@@ -306,8 +302,7 @@ static int vidioc_g_ctrl(struct file *file, void *priv, | |||
306 | static int vidioc_s_ctrl(struct file *file, void *priv, | 302 | static int vidioc_s_ctrl(struct file *file, void *priv, |
307 | struct v4l2_control *ctrl) | 303 | struct v4l2_control *ctrl) |
308 | { | 304 | { |
309 | struct video_device *dev = video_devdata(file); | 305 | struct tt_device *tt = video_drvdata(file); |
310 | struct tt_device *tt = video_get_drvdata(dev); | ||
311 | 306 | ||
312 | switch (ctrl->id) { | 307 | switch (ctrl->id) { |
313 | case V4L2_CID_AUDIO_MUTE: | 308 | case V4L2_CID_AUDIO_MUTE: |