diff options
author | Mauro Carvalho Chehab <mchehab@brturbo.com.br> | 2005-11-09 00:37:49 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-09 10:56:21 -0500 |
commit | 79436633dbced18aa348f8669ef507109f851303 (patch) | |
tree | 46e90aa4e1ebdca2ec5e97bab09e90f06bee1b49 /drivers/media/video/saa7134 | |
parent | de48eebce8b63dbae7272ee80f4fe0eaddb61278 (diff) |
[PATCH] v4l: 809: some changes to allow compiling cx88 and saa7134
- Some changes to allow compiling cx88 and saa7134 without V4L1 support.
- This patch will help obsoleting V4L1 API.
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/media/video/saa7134')
-rw-r--r-- | drivers/media/video/saa7134/saa7134-video.c | 6 | ||||
-rw-r--r-- | drivers/media/video/saa7134/saa7134.h | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/drivers/media/video/saa7134/saa7134-video.c b/drivers/media/video/saa7134/saa7134-video.c index caeb47c68b8b..632ebe8724ec 100644 --- a/drivers/media/video/saa7134/saa7134-video.c +++ b/drivers/media/video/saa7134/saa7134-video.c | |||
@@ -30,6 +30,9 @@ | |||
30 | #include "saa7134-reg.h" | 30 | #include "saa7134-reg.h" |
31 | #include "saa7134.h" | 31 | #include "saa7134.h" |
32 | 32 | ||
33 | /* Include V4L1 specific functions. Should be removed soon */ | ||
34 | #include <linux/videodev.h> | ||
35 | |||
33 | /* ------------------------------------------------------------------ */ | 36 | /* ------------------------------------------------------------------ */ |
34 | 37 | ||
35 | static unsigned int video_debug = 0; | 38 | static unsigned int video_debug = 0; |
@@ -2060,7 +2063,7 @@ static int video_do_ioctl(struct inode *inode, struct file *file, | |||
2060 | struct v4l2_format *f = arg; | 2063 | struct v4l2_format *f = arg; |
2061 | return saa7134_try_fmt(dev,fh,f); | 2064 | return saa7134_try_fmt(dev,fh,f); |
2062 | } | 2065 | } |
2063 | 2066 | #ifdef HAVE_V4L1 | |
2064 | case VIDIOCGMBUF: | 2067 | case VIDIOCGMBUF: |
2065 | { | 2068 | { |
2066 | struct video_mbuf *mbuf = arg; | 2069 | struct video_mbuf *mbuf = arg; |
@@ -2085,6 +2088,7 @@ static int video_do_ioctl(struct inode *inode, struct file *file, | |||
2085 | } | 2088 | } |
2086 | return 0; | 2089 | return 0; |
2087 | } | 2090 | } |
2091 | #endif | ||
2088 | case VIDIOC_REQBUFS: | 2092 | case VIDIOC_REQBUFS: |
2089 | return videobuf_reqbufs(saa7134_queue(fh),arg); | 2093 | return videobuf_reqbufs(saa7134_queue(fh),arg); |
2090 | 2094 | ||
diff --git a/drivers/media/video/saa7134/saa7134.h b/drivers/media/video/saa7134/saa7134.h index 064c2f7a8c12..cd28a6a7b972 100644 --- a/drivers/media/video/saa7134/saa7134.h +++ b/drivers/media/video/saa7134/saa7134.h | |||
@@ -24,7 +24,7 @@ | |||
24 | 24 | ||
25 | #include <linux/pci.h> | 25 | #include <linux/pci.h> |
26 | #include <linux/i2c.h> | 26 | #include <linux/i2c.h> |
27 | #include <linux/videodev.h> | 27 | #include <linux/videodev2.h> |
28 | #include <linux/kdev_t.h> | 28 | #include <linux/kdev_t.h> |
29 | #include <linux/input.h> | 29 | #include <linux/input.h> |
30 | #include <linux/notifier.h> | 30 | #include <linux/notifier.h> |