aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/cx88
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/cx88
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/cx88')
-rw-r--r--drivers/media/video/cx88/cx88-blackbird.c2
-rw-r--r--drivers/media/video/cx88/cx88-video.c3
2 files changed, 0 insertions, 5 deletions
diff --git a/drivers/media/video/cx88/cx88-blackbird.c b/drivers/media/video/cx88/cx88-blackbird.c
index 55c35482089e..9a1374a38ec7 100644
--- a/drivers/media/video/cx88/cx88-blackbird.c
+++ b/drivers/media/video/cx88/cx88-blackbird.c
@@ -1207,8 +1207,6 @@ static const struct v4l2_ioctl_ops mpeg_ioctl_ops = {
1207 1207
1208static struct video_device cx8802_mpeg_template = { 1208static struct video_device cx8802_mpeg_template = {
1209 .name = "cx8802", 1209 .name = "cx8802",
1210 .type = VID_TYPE_CAPTURE | VID_TYPE_TUNER |
1211 VID_TYPE_SCALES | VID_TYPE_MPEG_ENCODER,
1212 .fops = &mpeg_fops, 1210 .fops = &mpeg_fops,
1213 .ioctl_ops = &mpeg_ioctl_ops, 1211 .ioctl_ops = &mpeg_ioctl_ops,
1214 .minor = -1, 1212 .minor = -1,
diff --git a/drivers/media/video/cx88/cx88-video.c b/drivers/media/video/cx88/cx88-video.c
index 24b403b238d1..ef4d56ea0027 100644
--- a/drivers/media/video/cx88/cx88-video.c
+++ b/drivers/media/video/cx88/cx88-video.c
@@ -1722,7 +1722,6 @@ static struct video_device cx8800_vbi_template;
1722 1722
1723static struct video_device cx8800_video_template = { 1723static struct video_device cx8800_video_template = {
1724 .name = "cx8800-video", 1724 .name = "cx8800-video",
1725 .type = VID_TYPE_CAPTURE|VID_TYPE_TUNER|VID_TYPE_SCALES,
1726 .fops = &video_fops, 1725 .fops = &video_fops,
1727 .minor = -1, 1726 .minor = -1,
1728 .ioctl_ops = &video_ioctl_ops, 1727 .ioctl_ops = &video_ioctl_ops,
@@ -1761,7 +1760,6 @@ static const struct v4l2_ioctl_ops radio_ioctl_ops = {
1761 1760
1762static struct video_device cx8800_radio_template = { 1761static struct video_device cx8800_radio_template = {
1763 .name = "cx8800-radio", 1762 .name = "cx8800-radio",
1764 .type = VID_TYPE_TUNER,
1765 .fops = &radio_fops, 1763 .fops = &radio_fops,
1766 .minor = -1, 1764 .minor = -1,
1767 .ioctl_ops = &radio_ioctl_ops, 1765 .ioctl_ops = &radio_ioctl_ops,
@@ -1838,7 +1836,6 @@ static int __devinit cx8800_initdev(struct pci_dev *pci_dev,
1838 memcpy( &cx8800_vbi_template, &cx8800_video_template, 1836 memcpy( &cx8800_vbi_template, &cx8800_video_template,
1839 sizeof(cx8800_vbi_template) ); 1837 sizeof(cx8800_vbi_template) );
1840 strcpy(cx8800_vbi_template.name,"cx8800-vbi"); 1838 strcpy(cx8800_vbi_template.name,"cx8800-vbi");
1841 cx8800_vbi_template.type = VID_TYPE_TELETEXT|VID_TYPE_TUNER;
1842 1839
1843 /* initialize driver struct */ 1840 /* initialize driver struct */
1844 spin_lock_init(&dev->slock); 1841 spin_lock_init(&dev->slock);