Commit 0ef4dbad authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

V4L/DVB (10859): vino: minor renames

Signed-off-by: default avatarHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent c49cb361
...@@ -289,7 +289,7 @@ struct vino_channel_settings { ...@@ -289,7 +289,7 @@ struct vino_channel_settings {
struct vino_interrupt_data int_data; struct vino_interrupt_data int_data;
/* V4L support */ /* V4L support */
struct video_device *v4l_device; struct video_device *vdev;
}; };
struct vino_client { struct vino_client {
...@@ -347,8 +347,8 @@ static struct vino_settings *vino_drvdata; ...@@ -347,8 +347,8 @@ static struct vino_settings *vino_drvdata;
static const char *vino_driver_name = "vino"; static const char *vino_driver_name = "vino";
static const char *vino_driver_description = "SGI VINO"; static const char *vino_driver_description = "SGI VINO";
static const char *vino_bus_name = "GIO64 bus"; static const char *vino_bus_name = "GIO64 bus";
static const char *vino_v4l_device_name_a = "SGI VINO Channel A"; static const char *vino_vdev_name_a = "SGI VINO Channel A";
static const char *vino_v4l_device_name_b = "SGI VINO Channel B"; static const char *vino_vdev_name_b = "SGI VINO Channel B";
static void vino_capture_tasklet(unsigned long channel); static void vino_capture_tasklet(unsigned long channel);
...@@ -4227,7 +4227,7 @@ static const struct v4l2_file_operations vino_fops = { ...@@ -4227,7 +4227,7 @@ static const struct v4l2_file_operations vino_fops = {
.poll = vino_poll, .poll = vino_poll,
}; };
static struct video_device v4l_device_template = { static struct video_device vdev_template = {
.name = "NOT SET", .name = "NOT SET",
.fops = &vino_fops, .fops = &vino_fops,
.ioctl_ops = &vino_ioctl_ops, .ioctl_ops = &vino_ioctl_ops,
...@@ -4239,24 +4239,24 @@ static void vino_module_cleanup(int stage) ...@@ -4239,24 +4239,24 @@ static void vino_module_cleanup(int stage)
{ {
switch(stage) { switch(stage) {
case 10: case 10:
video_unregister_device(vino_drvdata->b.v4l_device); video_unregister_device(vino_drvdata->b.vdev);
vino_drvdata->b.v4l_device = NULL; vino_drvdata->b.vdev = NULL;
case 9: case 9:
video_unregister_device(vino_drvdata->a.v4l_device); video_unregister_device(vino_drvdata->a.vdev);
vino_drvdata->a.v4l_device = NULL; vino_drvdata->a.vdev = NULL;
case 8: case 8:
vino_i2c_del_bus(); vino_i2c_del_bus();
case 7: case 7:
free_irq(SGI_VINO_IRQ, NULL); free_irq(SGI_VINO_IRQ, NULL);
case 6: case 6:
if (vino_drvdata->b.v4l_device) { if (vino_drvdata->b.vdev) {
video_device_release(vino_drvdata->b.v4l_device); video_device_release(vino_drvdata->b.vdev);
vino_drvdata->b.v4l_device = NULL; vino_drvdata->b.vdev = NULL;
} }
case 5: case 5:
if (vino_drvdata->a.v4l_device) { if (vino_drvdata->a.vdev) {
video_device_release(vino_drvdata->a.v4l_device); video_device_release(vino_drvdata->a.vdev);
vino_drvdata->a.v4l_device = NULL; vino_drvdata->a.vdev = NULL;
} }
case 4: case 4:
/* all entries in dma_cpu dummy table have the same address */ /* 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,19 +4398,19 @@ static int vino_init_channel_settings(struct vino_channel_settings *vcs,
spin_lock_init(&vcs->fb_queue.queue_lock); spin_lock_init(&vcs->fb_queue.queue_lock);
init_waitqueue_head(&vcs->fb_queue.frame_wait_queue); init_waitqueue_head(&vcs->fb_queue.frame_wait_queue);
vcs->v4l_device = video_device_alloc(); vcs->vdev = video_device_alloc();
if (!vcs->v4l_device) { if (!vcs->vdev) {
vino_module_cleanup(vino_init_stage); vino_module_cleanup(vino_init_stage);
return -ENOMEM; return -ENOMEM;
} }
vino_init_stage++; vino_init_stage++;
memcpy(vcs->v4l_device, &v4l_device_template, memcpy(vcs->vdev, &vdev_template,
sizeof(struct video_device)); sizeof(struct video_device));
strcpy(vcs->v4l_device->name, name); strcpy(vcs->vdev->name, name);
vcs->v4l_device->release = video_device_release; vcs->vdev->release = video_device_release;
video_set_drvdata(vcs->v4l_device, vcs); video_set_drvdata(vcs->vdev, vcs);
return 0; return 0;
} }
...@@ -4436,12 +4436,12 @@ static int __init vino_module_init(void) ...@@ -4436,12 +4436,12 @@ static int __init vino_module_init(void)
spin_lock_init(&vino_drvdata->input_lock); spin_lock_init(&vino_drvdata->input_lock);
ret = vino_init_channel_settings(&vino_drvdata->a, VINO_CHANNEL_A, ret = vino_init_channel_settings(&vino_drvdata->a, VINO_CHANNEL_A,
vino_v4l_device_name_a); vino_vdev_name_a);
if (ret) if (ret)
return ret; return ret;
ret = vino_init_channel_settings(&vino_drvdata->b, VINO_CHANNEL_B, ret = vino_init_channel_settings(&vino_drvdata->b, VINO_CHANNEL_B,
vino_v4l_device_name_b); vino_vdev_name_b);
if (ret) if (ret)
return ret; return ret;
...@@ -4465,7 +4465,7 @@ static int __init vino_module_init(void) ...@@ -4465,7 +4465,7 @@ static int __init vino_module_init(void)
} }
vino_init_stage++; vino_init_stage++;
ret = video_register_device(vino_drvdata->a.v4l_device, ret = video_register_device(vino_drvdata->a.vdev,
VFL_TYPE_GRABBER, -1); VFL_TYPE_GRABBER, -1);
if (ret < 0) { if (ret < 0) {
printk(KERN_ERR "VINO channel A Video4Linux-device " printk(KERN_ERR "VINO channel A Video4Linux-device "
...@@ -4475,7 +4475,7 @@ static int __init vino_module_init(void) ...@@ -4475,7 +4475,7 @@ static int __init vino_module_init(void)
} }
vino_init_stage++; vino_init_stage++;
ret = video_register_device(vino_drvdata->b.v4l_device, ret = video_register_device(vino_drvdata->b.vdev,
VFL_TYPE_GRABBER, -1); VFL_TYPE_GRABBER, -1);
if (ret < 0) { if (ret < 0) {
printk(KERN_ERR "VINO channel B Video4Linux-device " printk(KERN_ERR "VINO channel B Video4Linux-device "
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment