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-typhoon.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-typhoon.c')
-rw-r--r-- | drivers/media/radio/radio-typhoon.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/media/radio/radio-typhoon.c b/drivers/media/radio/radio-typhoon.c index 27255d7ff1ba..952ec35a8415 100644 --- a/drivers/media/radio/radio-typhoon.c +++ b/drivers/media/radio/radio-typhoon.c | |||
@@ -223,8 +223,7 @@ static int vidioc_s_tuner(struct file *file, void *priv, | |||
223 | static int vidioc_s_frequency(struct file *file, void *priv, | 223 | static int vidioc_s_frequency(struct file *file, void *priv, |
224 | struct v4l2_frequency *f) | 224 | struct v4l2_frequency *f) |
225 | { | 225 | { |
226 | struct video_device *dev = video_devdata(file); | 226 | struct typhoon_device *typhoon = video_drvdata(file); |
227 | struct typhoon_device *typhoon = video_get_drvdata(dev); | ||
228 | 227 | ||
229 | typhoon->curfreq = f->frequency; | 228 | typhoon->curfreq = f->frequency; |
230 | typhoon_setfreq(typhoon, typhoon->curfreq); | 229 | typhoon_setfreq(typhoon, typhoon->curfreq); |
@@ -234,8 +233,7 @@ static int vidioc_s_frequency(struct file *file, void *priv, | |||
234 | static int vidioc_g_frequency(struct file *file, void *priv, | 233 | static int vidioc_g_frequency(struct file *file, void *priv, |
235 | struct v4l2_frequency *f) | 234 | struct v4l2_frequency *f) |
236 | { | 235 | { |
237 | struct video_device *dev = video_devdata(file); | 236 | struct typhoon_device *typhoon = video_drvdata(file); |
238 | struct typhoon_device *typhoon = video_get_drvdata(dev); | ||
239 | 237 | ||
240 | f->type = V4L2_TUNER_RADIO; | 238 | f->type = V4L2_TUNER_RADIO; |
241 | f->frequency = typhoon->curfreq; | 239 | f->frequency = typhoon->curfreq; |
@@ -261,8 +259,7 @@ static int vidioc_queryctrl(struct file *file, void *priv, | |||
261 | static int vidioc_g_ctrl(struct file *file, void *priv, | 259 | static int vidioc_g_ctrl(struct file *file, void *priv, |
262 | struct v4l2_control *ctrl) | 260 | struct v4l2_control *ctrl) |
263 | { | 261 | { |
264 | struct video_device *dev = video_devdata(file); | 262 | struct typhoon_device *typhoon = video_drvdata(file); |
265 | struct typhoon_device *typhoon = video_get_drvdata(dev); | ||
266 | 263 | ||
267 | switch (ctrl->id) { | 264 | switch (ctrl->id) { |
268 | case V4L2_CID_AUDIO_MUTE: | 265 | case V4L2_CID_AUDIO_MUTE: |
@@ -278,8 +275,7 @@ static int vidioc_g_ctrl(struct file *file, void *priv, | |||
278 | static int vidioc_s_ctrl (struct file *file, void *priv, | 275 | static int vidioc_s_ctrl (struct file *file, void *priv, |
279 | struct v4l2_control *ctrl) | 276 | struct v4l2_control *ctrl) |
280 | { | 277 | { |
281 | struct video_device *dev = video_devdata(file); | 278 | struct typhoon_device *typhoon = video_drvdata(file); |
282 | struct typhoon_device *typhoon = video_get_drvdata(dev); | ||
283 | 279 | ||
284 | switch (ctrl->id) { | 280 | switch (ctrl->id) { |
285 | case V4L2_CID_AUDIO_MUTE: | 281 | case V4L2_CID_AUDIO_MUTE: |