summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/usbvideo
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-07-26 13:26:43 +0200
committerHans Verkuil <hverkuil@xs4all.nl>2008-07-26 13:26:43 +0200
commit9782f69f6d88cc756f9c0e0d01846779df901da8 (patch)
tree23ac426153cabcb5c8944167d7db6bd12c12ac59 /linux/drivers/media/video/usbvideo
parentddb6d77848776ec7f6b3135f2dfa5fbc1544b003 (diff)
downloadmediapointer-dvb-s2-9782f69f6d88cc756f9c0e0d01846779df901da8.tar.gz
mediapointer-dvb-s2-9782f69f6d88cc756f9c0e0d01846779df901da8.tar.bz2
v4l2-dev: remove unused type and type2 field from video_device
From: Hans Verkuil <hverkuil@xs4all.nl> 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>
Diffstat (limited to 'linux/drivers/media/video/usbvideo')
-rw-r--r--linux/drivers/media/video/usbvideo/usbvideo.c1
-rw-r--r--linux/drivers/media/video/usbvideo/vicam.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/linux/drivers/media/video/usbvideo/usbvideo.c b/linux/drivers/media/video/usbvideo/usbvideo.c
index 737ff846b..5bda83f7d 100644
--- a/linux/drivers/media/video/usbvideo/usbvideo.c
+++ b/linux/drivers/media/video/usbvideo/usbvideo.c
@@ -952,7 +952,6 @@ static const struct file_operations usbvideo_fops = {
.llseek = no_llseek,
};
static const struct video_device usbvideo_template = {
- .type = VID_TYPE_CAPTURE,
.fops = &usbvideo_fops,
};
diff --git a/linux/drivers/media/video/usbvideo/vicam.c b/linux/drivers/media/video/usbvideo/vicam.c
index 165d35cfa..e31b64f17 100644
--- a/linux/drivers/media/video/usbvideo/vicam.c
+++ b/linux/drivers/media/video/usbvideo/vicam.c
@@ -1103,7 +1103,6 @@ static const struct file_operations vicam_fops = {
static struct video_device vicam_template = {
.name = "ViCam-based USB Camera",
- .type = VID_TYPE_CAPTURE,
.fops = &vicam_fops,
.minor = -1,
};