diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-02-12 09:31:13 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:43:09 -0400 |
commit | 0ef4dbad4f2303b9210cd382bca430d016db5452 (patch) | |
tree | 38b0e4d1d3d964e556b1a5f70b7190dfc76a9f7c | |
parent | c49cb361dbc5a33f35f8d7eb26f0bddd83019e97 (diff) |
V4L/DVB (10859): vino: minor renames
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/media/video/vino.c | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/drivers/media/video/vino.c b/drivers/media/video/vino.c index 2ce2fe594cdf..f9ca27a9524e 100644 --- a/drivers/media/video/vino.c +++ b/drivers/media/video/vino.c | |||
@@ -289,7 +289,7 @@ struct vino_channel_settings { | |||
289 | struct vino_interrupt_data int_data; | 289 | struct vino_interrupt_data int_data; |
290 | 290 | ||
291 | /* V4L support */ | 291 | /* V4L support */ |
292 | struct video_device *v4l_device; | 292 | struct video_device *vdev; |
293 | }; | 293 | }; |
294 | 294 | ||
295 | struct vino_client { | 295 | struct vino_client { |
@@ -347,8 +347,8 @@ static struct vino_settings *vino_drvdata; | |||
347 | static const char *vino_driver_name = "vino"; | 347 | static const char *vino_driver_name = "vino"; |
348 | static const char *vino_driver_description = "SGI VINO"; | 348 | static const char *vino_driver_description = "SGI VINO"; |
349 | static const char *vino_bus_name = "GIO64 bus"; | 349 | static const char *vino_bus_name = "GIO64 bus"; |
350 | static const char *vino_v4l_device_name_a = "SGI VINO Channel A"; | 350 | static const char *vino_vdev_name_a = "SGI VINO Channel A"; |
351 | static const char *vino_v4l_device_name_b = "SGI VINO Channel B"; | 351 | static const char *vino_vdev_name_b = "SGI VINO Channel B"; |
352 | 352 | ||
353 | static void vino_capture_tasklet(unsigned long channel); | 353 | static void vino_capture_tasklet(unsigned long channel); |
354 | 354 | ||
@@ -4227,7 +4227,7 @@ static const struct v4l2_file_operations vino_fops = { | |||
4227 | .poll = vino_poll, | 4227 | .poll = vino_poll, |
4228 | }; | 4228 | }; |
4229 | 4229 | ||
4230 | static struct video_device v4l_device_template = { | 4230 | static struct video_device vdev_template = { |
4231 | .name = "NOT SET", | 4231 | .name = "NOT SET", |
4232 | .fops = &vino_fops, | 4232 | .fops = &vino_fops, |
4233 | .ioctl_ops = &vino_ioctl_ops, | 4233 | .ioctl_ops = &vino_ioctl_ops, |
@@ -4239,24 +4239,24 @@ static void vino_module_cleanup(int stage) | |||
4239 | { | 4239 | { |
4240 | switch(stage) { | 4240 | switch(stage) { |
4241 | case 10: | 4241 | case 10: |
4242 | video_unregister_device(vino_drvdata->b.v4l_device); | 4242 | video_unregister_device(vino_drvdata->b.vdev); |
4243 | vino_drvdata->b.v4l_device = NULL; | 4243 | vino_drvdata->b.vdev = NULL; |
4244 | case 9: | 4244 | case 9: |
4245 | video_unregister_device(vino_drvdata->a.v4l_device); | 4245 | video_unregister_device(vino_drvdata->a.vdev); |
4246 | vino_drvdata->a.v4l_device = NULL; | 4246 | vino_drvdata->a.vdev = NULL; |
4247 | case 8: | 4247 | case 8: |
4248 | vino_i2c_del_bus(); | 4248 | vino_i2c_del_bus(); |
4249 | case 7: | 4249 | case 7: |
4250 | free_irq(SGI_VINO_IRQ, NULL); | 4250 | free_irq(SGI_VINO_IRQ, NULL); |
4251 | case 6: | 4251 | case 6: |
4252 | if (vino_drvdata->b.v4l_device) { | 4252 | if (vino_drvdata->b.vdev) { |
4253 | video_device_release(vino_drvdata->b.v4l_device); | 4253 | video_device_release(vino_drvdata->b.vdev); |
4254 | vino_drvdata->b.v4l_device = NULL; | 4254 | vino_drvdata->b.vdev = NULL; |
4255 | } | 4255 | } |
4256 | case 5: | 4256 | case 5: |
4257 | if (vino_drvdata->a.v4l_device) { | 4257 | if (vino_drvdata->a.vdev) { |
4258 | video_device_release(vino_drvdata->a.v4l_device); | 4258 | video_device_release(vino_drvdata->a.vdev); |
4259 | vino_drvdata->a.v4l_device = NULL; | 4259 | vino_drvdata->a.vdev = NULL; |
4260 | } | 4260 | } |
4261 | case 4: | 4261 | case 4: |
4262 | /* all entries in dma_cpu dummy table have the same address */ | 4262 | /* all entries in dma_cpu dummy table have the same address */ |
@@ -4398,19 +4398,19 @@ static int vino_init_channel_settings(struct vino_channel_settings *vcs, | |||
4398 | spin_lock_init(&vcs->fb_queue.queue_lock); | 4398 | spin_lock_init(&vcs->fb_queue.queue_lock); |
4399 | init_waitqueue_head(&vcs->fb_queue.frame_wait_queue); | 4399 | init_waitqueue_head(&vcs->fb_queue.frame_wait_queue); |
4400 | 4400 | ||
4401 | vcs->v4l_device = video_device_alloc(); | 4401 | vcs->vdev = video_device_alloc(); |
4402 | if (!vcs->v4l_device) { | 4402 | if (!vcs->vdev) { |
4403 | vino_module_cleanup(vino_init_stage); | 4403 | vino_module_cleanup(vino_init_stage); |
4404 | return -ENOMEM; | 4404 | return -ENOMEM; |
4405 | } | 4405 | } |
4406 | vino_init_stage++; | 4406 | vino_init_stage++; |
4407 | 4407 | ||
4408 | memcpy(vcs->v4l_device, &v4l_device_template, | 4408 | memcpy(vcs->vdev, &vdev_template, |
4409 | sizeof(struct video_device)); | 4409 | sizeof(struct video_device)); |
4410 | strcpy(vcs->v4l_device->name, name); | 4410 | strcpy(vcs->vdev->name, name); |
4411 | vcs->v4l_device->release = video_device_release; | 4411 | vcs->vdev->release = video_device_release; |
4412 | 4412 | ||
4413 | video_set_drvdata(vcs->v4l_device, vcs); | 4413 | video_set_drvdata(vcs->vdev, vcs); |
4414 | 4414 | ||
4415 | return 0; | 4415 | return 0; |
4416 | } | 4416 | } |
@@ -4436,12 +4436,12 @@ static int __init vino_module_init(void) | |||
4436 | spin_lock_init(&vino_drvdata->input_lock); | 4436 | spin_lock_init(&vino_drvdata->input_lock); |
4437 | 4437 | ||
4438 | ret = vino_init_channel_settings(&vino_drvdata->a, VINO_CHANNEL_A, | 4438 | ret = vino_init_channel_settings(&vino_drvdata->a, VINO_CHANNEL_A, |
4439 | vino_v4l_device_name_a); | 4439 | vino_vdev_name_a); |
4440 | if (ret) | 4440 | if (ret) |
4441 | return ret; | 4441 | return ret; |
4442 | 4442 | ||
4443 | ret = vino_init_channel_settings(&vino_drvdata->b, VINO_CHANNEL_B, | 4443 | ret = vino_init_channel_settings(&vino_drvdata->b, VINO_CHANNEL_B, |
4444 | vino_v4l_device_name_b); | 4444 | vino_vdev_name_b); |
4445 | if (ret) | 4445 | if (ret) |
4446 | return ret; | 4446 | return ret; |
4447 | 4447 | ||
@@ -4465,7 +4465,7 @@ static int __init vino_module_init(void) | |||
4465 | } | 4465 | } |
4466 | vino_init_stage++; | 4466 | vino_init_stage++; |
4467 | 4467 | ||
4468 | ret = video_register_device(vino_drvdata->a.v4l_device, | 4468 | ret = video_register_device(vino_drvdata->a.vdev, |
4469 | VFL_TYPE_GRABBER, -1); | 4469 | VFL_TYPE_GRABBER, -1); |
4470 | if (ret < 0) { | 4470 | if (ret < 0) { |
4471 | printk(KERN_ERR "VINO channel A Video4Linux-device " | 4471 | printk(KERN_ERR "VINO channel A Video4Linux-device " |
@@ -4475,7 +4475,7 @@ static int __init vino_module_init(void) | |||
4475 | } | 4475 | } |
4476 | vino_init_stage++; | 4476 | vino_init_stage++; |
4477 | 4477 | ||
4478 | ret = video_register_device(vino_drvdata->b.v4l_device, | 4478 | ret = video_register_device(vino_drvdata->b.vdev, |
4479 | VFL_TYPE_GRABBER, -1); | 4479 | VFL_TYPE_GRABBER, -1); |
4480 | if (ret < 0) { | 4480 | if (ret < 0) { |
4481 | printk(KERN_ERR "VINO channel B Video4Linux-device " | 4481 | printk(KERN_ERR "VINO channel B Video4Linux-device " |