Commit 7e0a16f6118a297dd467c1e5a0908429fcdf56af
1 parent
42d12f5aa1
Exists in
master
and in
39 other branches
V4L/DVB (10907): avoid loading the entire videodev.h header on V4L2 drivers
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Showing 16 changed files with 27 additions and 27 deletions Side-by-side Diff
- drivers/media/video/bt8xx/bttv.h
- drivers/media/video/bt8xx/bttvp.h
- drivers/media/video/cpia2/cpia2_v4l.c
- drivers/media/video/cx23885/cx23885-video.c
- drivers/media/video/cx88/cx88-video.c
- drivers/media/video/msp3400-driver.c
- drivers/media/video/ov7670.c
- drivers/media/video/saa7134/saa7134-video.c
- drivers/media/video/saa7146.h
- drivers/media/video/v4l2-ioctl.c
- drivers/media/video/vivi.c
- drivers/media/video/w9966.c
- drivers/media/video/w9968cf.c
- drivers/media/video/zoran/zoran_driver.c
- include/linux/videodev.h
- include/media/v4l2-ioctl.h
drivers/media/video/bt8xx/bttv.h
drivers/media/video/bt8xx/bttvp.h
drivers/media/video/cpia2/cpia2_v4l.c
drivers/media/video/cx23885/cx23885-video.c
... | ... | @@ -35,11 +35,6 @@ |
35 | 35 | #include <media/v4l2-common.h> |
36 | 36 | #include <media/v4l2-ioctl.h> |
37 | 37 | |
38 | -#ifdef CONFIG_VIDEO_V4L1_COMPAT | |
39 | -/* Include V4L1 specific functions. Should be removed soon */ | |
40 | -#include <linux/videodev.h> | |
41 | -#endif | |
42 | - | |
43 | 38 | MODULE_DESCRIPTION("v4l2 driver module for cx23885 based TV cards"); |
44 | 39 | MODULE_AUTHOR("Steven Toth <stoth@linuxtv.org>"); |
45 | 40 | MODULE_LICENSE("GPL"); |
drivers/media/video/cx88/cx88-video.c
... | ... | @@ -41,11 +41,6 @@ |
41 | 41 | #include <media/v4l2-common.h> |
42 | 42 | #include <media/v4l2-ioctl.h> |
43 | 43 | |
44 | -#ifdef CONFIG_VIDEO_V4L1_COMPAT | |
45 | -/* Include V4L1 specific functions. Should be removed soon */ | |
46 | -#include <linux/videodev.h> | |
47 | -#endif | |
48 | - | |
49 | 44 | MODULE_DESCRIPTION("v4l2 driver module for cx2388x based TV cards"); |
50 | 45 | MODULE_AUTHOR("Gerd Knorr <kraxel@bytesex.org> [SuSE Labs]"); |
51 | 46 | MODULE_LICENSE("GPL"); |
drivers/media/video/msp3400-driver.c
... | ... | @@ -53,7 +53,7 @@ |
53 | 53 | #include <linux/i2c.h> |
54 | 54 | #include <linux/kthread.h> |
55 | 55 | #include <linux/freezer.h> |
56 | -#include <linux/videodev2.h> | |
56 | +#include <linux/videodev.h> | |
57 | 57 | #include <media/v4l2-device.h> |
58 | 58 | #include <media/v4l2-ioctl.h> |
59 | 59 | #include <media/v4l2-i2c-drv-legacy.h> |
drivers/media/video/ov7670.c
drivers/media/video/saa7134/saa7134-video.c
... | ... | @@ -31,11 +31,6 @@ |
31 | 31 | #include "saa7134.h" |
32 | 32 | #include <media/v4l2-common.h> |
33 | 33 | |
34 | -#ifdef CONFIG_VIDEO_V4L1_COMPAT | |
35 | -/* Include V4L1 specific functions. Should be removed soon */ | |
36 | -#include <linux/videodev.h> | |
37 | -#endif | |
38 | - | |
39 | 34 | /* ------------------------------------------------------------------ */ |
40 | 35 | |
41 | 36 | unsigned int video_debug; |
drivers/media/video/saa7146.h
drivers/media/video/v4l2-ioctl.c
drivers/media/video/vivi.c
... | ... | @@ -28,10 +28,6 @@ |
28 | 28 | #include <linux/mutex.h> |
29 | 29 | #include <linux/videodev2.h> |
30 | 30 | #include <linux/dma-mapping.h> |
31 | -#ifdef CONFIG_VIDEO_V4L1_COMPAT | |
32 | -/* Include V4L1 specific functions. Should be removed soon */ | |
33 | -#include <linux/videodev.h> | |
34 | -#endif | |
35 | 31 | #include <linux/interrupt.h> |
36 | 32 | #include <linux/kthread.h> |
37 | 33 | #include <linux/highmem.h> |
drivers/media/video/w9966.c
drivers/media/video/w9968cf.c
drivers/media/video/zoran/zoran_driver.c
include/linux/videodev.h
... | ... | @@ -16,6 +16,23 @@ |
16 | 16 | #include <linux/ioctl.h> |
17 | 17 | #include <linux/videodev2.h> |
18 | 18 | |
19 | +#if defined(__MIN_V4L1) && defined (__KERNEL__) | |
20 | + | |
21 | +/* | |
22 | + * Used by those V4L2 core functions that need a minimum V4L1 support, | |
23 | + * in order to allow V4L1 Compatibilty code compilation. | |
24 | + */ | |
25 | + | |
26 | +struct video_mbuf | |
27 | +{ | |
28 | + int size; /* Total memory to map */ | |
29 | + int frames; /* Frames */ | |
30 | + int offsets[VIDEO_MAX_FRAME]; | |
31 | +}; | |
32 | + | |
33 | +#define VIDIOCGMBUF _IOR('v',20, struct video_mbuf) /* Memory map buffer info */ | |
34 | + | |
35 | +#else | |
19 | 36 | #if defined(CONFIG_VIDEO_V4L1_COMPAT) || !defined (__KERNEL__) |
20 | 37 | |
21 | 38 | #define VID_TYPE_CAPTURE 1 /* Can capture */ |
... | ... | @@ -312,6 +329,7 @@ |
312 | 329 | #define VID_PLAY_END_MARK 14 |
313 | 330 | |
314 | 331 | #endif /* CONFIG_VIDEO_V4L1_COMPAT */ |
332 | +#endif /* __MIN_V4L1 */ | |
315 | 333 | |
316 | 334 | #endif /* __LINUX_VIDEODEV_H */ |
317 | 335 |
include/media/v4l2-ioctl.h