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-gemtek-pci.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-gemtek-pci.c')
-rw-r--r-- | drivers/media/radio/radio-gemtek-pci.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/drivers/media/radio/radio-gemtek-pci.c b/drivers/media/radio/radio-gemtek-pci.c index 1f57f731c121..e15bee6d7cfc 100644 --- a/drivers/media/radio/radio-gemtek-pci.c +++ b/drivers/media/radio/radio-gemtek-pci.c | |||
@@ -204,8 +204,7 @@ static int vidioc_querycap(struct file *file, void *priv, | |||
204 | static int vidioc_g_tuner(struct file *file, void *priv, | 204 | static int vidioc_g_tuner(struct file *file, void *priv, |
205 | struct v4l2_tuner *v) | 205 | struct v4l2_tuner *v) |
206 | { | 206 | { |
207 | struct video_device *dev = video_devdata(file); | 207 | struct gemtek_pci_card *card = video_drvdata(file); |
208 | struct gemtek_pci_card *card = video_get_drvdata(dev); | ||
209 | 208 | ||
210 | if (v->index > 0) | 209 | if (v->index > 0) |
211 | return -EINVAL; | 210 | return -EINVAL; |
@@ -232,8 +231,7 @@ static int vidioc_s_tuner(struct file *file, void *priv, | |||
232 | static int vidioc_s_frequency(struct file *file, void *priv, | 231 | static int vidioc_s_frequency(struct file *file, void *priv, |
233 | struct v4l2_frequency *f) | 232 | struct v4l2_frequency *f) |
234 | { | 233 | { |
235 | struct video_device *dev = video_devdata(file); | 234 | struct gemtek_pci_card *card = video_drvdata(file); |
236 | struct gemtek_pci_card *card = video_get_drvdata(dev); | ||
237 | 235 | ||
238 | if ( (f->frequency < GEMTEK_PCI_RANGE_LOW) || | 236 | if ( (f->frequency < GEMTEK_PCI_RANGE_LOW) || |
239 | (f->frequency > GEMTEK_PCI_RANGE_HIGH) ) | 237 | (f->frequency > GEMTEK_PCI_RANGE_HIGH) ) |
@@ -247,8 +245,7 @@ static int vidioc_s_frequency(struct file *file, void *priv, | |||
247 | static int vidioc_g_frequency(struct file *file, void *priv, | 245 | static int vidioc_g_frequency(struct file *file, void *priv, |
248 | struct v4l2_frequency *f) | 246 | struct v4l2_frequency *f) |
249 | { | 247 | { |
250 | struct video_device *dev = video_devdata(file); | 248 | struct gemtek_pci_card *card = video_drvdata(file); |
251 | struct gemtek_pci_card *card = video_get_drvdata(dev); | ||
252 | 249 | ||
253 | f->type = V4L2_TUNER_RADIO; | 250 | f->type = V4L2_TUNER_RADIO; |
254 | f->frequency = card->current_frequency; | 251 | f->frequency = card->current_frequency; |
@@ -272,8 +269,7 @@ static int vidioc_queryctrl(struct file *file, void *priv, | |||
272 | static int vidioc_g_ctrl(struct file *file, void *priv, | 269 | static int vidioc_g_ctrl(struct file *file, void *priv, |
273 | struct v4l2_control *ctrl) | 270 | struct v4l2_control *ctrl) |
274 | { | 271 | { |
275 | struct video_device *dev = video_devdata(file); | 272 | struct gemtek_pci_card *card = video_drvdata(file); |
276 | struct gemtek_pci_card *card = video_get_drvdata(dev); | ||
277 | 273 | ||
278 | switch (ctrl->id) { | 274 | switch (ctrl->id) { |
279 | case V4L2_CID_AUDIO_MUTE: | 275 | case V4L2_CID_AUDIO_MUTE: |
@@ -292,8 +288,7 @@ static int vidioc_g_ctrl(struct file *file, void *priv, | |||
292 | static int vidioc_s_ctrl(struct file *file, void *priv, | 288 | static int vidioc_s_ctrl(struct file *file, void *priv, |
293 | struct v4l2_control *ctrl) | 289 | struct v4l2_control *ctrl) |
294 | { | 290 | { |
295 | struct video_device *dev = video_devdata(file); | 291 | struct gemtek_pci_card *card = video_drvdata(file); |
296 | struct gemtek_pci_card *card = video_get_drvdata(dev); | ||
297 | 292 | ||
298 | switch (ctrl->id) { | 293 | switch (ctrl->id) { |
299 | case V4L2_CID_AUDIO_MUTE: | 294 | case V4L2_CID_AUDIO_MUTE: |