aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/saa7134
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-07-26 07:26:43 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-27 10:07:10 -0400
commit0ea6bc8d43c9ee3c5384bea184eab020927a5b2c (patch)
treef8e4988ac5612179b5fdd906e375bd1fde7ed636 /drivers/media/video/saa7134
parentc52e4f5836cff0a70a25665f475cf5294c9fe5eb (diff)
V4L/DVB (8523): v4l2-dev: remove unused type and type2 field from video_device
The type and type2 fields were unused and so could be removed. Instead add a vfl_type field that contains the type of the video device. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/saa7134')
-rw-r--r--drivers/media/video/saa7134/saa7134-core.c9
-rw-r--r--drivers/media/video/saa7134/saa7134-empress.c2
-rw-r--r--drivers/media/video/saa7134/saa7134-video.c3
3 files changed, 3 insertions, 11 deletions
diff --git a/drivers/media/video/saa7134/saa7134-core.c b/drivers/media/video/saa7134/saa7134-core.c
index a404368308a..75d618415f4 100644
--- a/drivers/media/video/saa7134/saa7134-core.c
+++ b/drivers/media/video/saa7134/saa7134-core.c
@@ -1008,11 +1008,9 @@ static int __devinit saa7134_initdev(struct pci_dev *pci_dev,
1008 v4l2_prio_init(&dev->prio); 1008 v4l2_prio_init(&dev->prio);
1009 1009
1010 /* register v4l devices */ 1010 /* register v4l devices */
1011 if (saa7134_no_overlay <= 0) { 1011 if (saa7134_no_overlay > 0)
1012 saa7134_video_template.type |= VID_TYPE_OVERLAY; 1012 printk(KERN_INFO "%s: Overlay support disabled.\n", dev->name);
1013 } else { 1013
1014 printk("%s: Overlay support disabled.\n",dev->name);
1015 }
1016 dev->video_dev = vdev_init(dev,&saa7134_video_template,"video"); 1014 dev->video_dev = vdev_init(dev,&saa7134_video_template,"video");
1017 err = video_register_device(dev->video_dev,VFL_TYPE_GRABBER, 1015 err = video_register_device(dev->video_dev,VFL_TYPE_GRABBER,
1018 video_nr[dev->nr]); 1016 video_nr[dev->nr]);
@@ -1025,7 +1023,6 @@ static int __devinit saa7134_initdev(struct pci_dev *pci_dev,
1025 dev->name,dev->video_dev->minor & 0x1f); 1023 dev->name,dev->video_dev->minor & 0x1f);
1026 1024
1027 dev->vbi_dev = vdev_init(dev, &saa7134_video_template, "vbi"); 1025 dev->vbi_dev = vdev_init(dev, &saa7134_video_template, "vbi");
1028 dev->vbi_dev->type = VID_TYPE_TUNER | VID_TYPE_TELETEXT;
1029 1026
1030 err = video_register_device(dev->vbi_dev,VFL_TYPE_VBI, 1027 err = video_register_device(dev->vbi_dev,VFL_TYPE_VBI,
1031 vbi_nr[dev->nr]); 1028 vbi_nr[dev->nr]);
diff --git a/drivers/media/video/saa7134/saa7134-empress.c b/drivers/media/video/saa7134/saa7134-empress.c
index cd52d5be404..c0c5d7509c2 100644
--- a/drivers/media/video/saa7134/saa7134-empress.c
+++ b/drivers/media/video/saa7134/saa7134-empress.c
@@ -439,8 +439,6 @@ static const struct v4l2_ioctl_ops ts_ioctl_ops = {
439 439
440static struct video_device saa7134_empress_template = { 440static struct video_device saa7134_empress_template = {
441 .name = "saa7134-empress", 441 .name = "saa7134-empress",
442 .type = 0 /* FIXME */,
443 .type2 = 0 /* FIXME */,
444 .fops = &ts_fops, 442 .fops = &ts_fops,
445 .minor = -1, 443 .minor = -1,
446 .ioctl_ops = &ts_ioctl_ops, 444 .ioctl_ops = &ts_ioctl_ops,
diff --git a/drivers/media/video/saa7134/saa7134-video.c b/drivers/media/video/saa7134/saa7134-video.c
index eb824897416..68c26898186 100644
--- a/drivers/media/video/saa7134/saa7134-video.c
+++ b/drivers/media/video/saa7134/saa7134-video.c
@@ -2451,8 +2451,6 @@ static const struct v4l2_ioctl_ops radio_ioctl_ops = {
2451 2451
2452struct video_device saa7134_video_template = { 2452struct video_device saa7134_video_template = {
2453 .name = "saa7134-video", 2453 .name = "saa7134-video",
2454 .type = VID_TYPE_CAPTURE|VID_TYPE_TUNER |
2455 VID_TYPE_CLIPPING|VID_TYPE_SCALES,
2456 .fops = &video_fops, 2454 .fops = &video_fops,
2457 .ioctl_ops = &video_ioctl_ops, 2455 .ioctl_ops = &video_ioctl_ops,
2458 .minor = -1, 2456 .minor = -1,
@@ -2462,7 +2460,6 @@ struct video_device saa7134_video_template = {
2462 2460
2463struct video_device saa7134_radio_template = { 2461struct video_device saa7134_radio_template = {
2464 .name = "saa7134-radio", 2462 .name = "saa7134-radio",
2465 .type = VID_TYPE_TUNER,
2466 .fops = &radio_fops, 2463 .fops = &radio_fops,
2467 .ioctl_ops = &radio_ioctl_ops, 2464 .ioctl_ops = &radio_ioctl_ops,
2468 .minor = -1, 2465 .minor = -1,