]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (10907): avoid loading the entire videodev.h header on V4L2 drivers
authorMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 10 Mar 2009 08:31:34 +0000 (05:31 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Mar 2009 15:43:15 +0000 (12:43 -0300)
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
16 files changed:
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

index 737a464606a9eecbbff5c9aa646790c11a426617..e08719b378bd3c16c98fdb4a179fa52faec9a6ab 100644 (file)
@@ -14,7 +14,7 @@
 #ifndef _BTTV_H_
 #define _BTTV_H_
 
-#include <linux/videodev.h>
+#include <linux/videodev2.h>
 #include <linux/i2c.h>
 #include <media/ir-common.h>
 #include <media/ir-kbd-i2c.h>
index b8274d233fd0f95dc00217e5d727de94c5f35f63..2c0a2cc61d032e8722035d12d6de3336b3eef284 100644 (file)
@@ -32,7 +32,6 @@
 #include <linux/wait.h>
 #include <linux/i2c.h>
 #include <linux/i2c-algo-bit.h>
-#include <linux/videodev.h>
 #include <linux/pci.h>
 #include <linux/input.h>
 #include <linux/mutex.h>
index 9c25894fdd8e7b19050ae7c3e58d67d45c5b11d7..d4099f5312ac4ab8ac2ad00b1eb9ae405e847c2d 100644 (file)
@@ -37,6 +37,7 @@
 #include <linux/sched.h>
 #include <linux/slab.h>
 #include <linux/init.h>
+#include <linux/videodev.h>
 #include <media/v4l2-ioctl.h>
 
 #include "cpia2.h"
index c2ed2505b72558cc77f43d4c3f2fec4a616ee8ca..7266029353537677b6fa5f0cf364d6da37007199 100644 (file)
 #include <media/v4l2-common.h>
 #include <media/v4l2-ioctl.h>
 
-#ifdef CONFIG_VIDEO_V4L1_COMPAT
-/* Include V4L1 specific functions. Should be removed soon */
-#include <linux/videodev.h>
-#endif
-
 MODULE_DESCRIPTION("v4l2 driver module for cx23885 based TV cards");
 MODULE_AUTHOR("Steven Toth <stoth@linuxtv.org>");
 MODULE_LICENSE("GPL");
index 2092e439ef0012ac18c7858bb929d859aab0a5be..5b0fbc602f3efe9bc774debfb6a341fc3ad4b4f2 100644 (file)
 #include <media/v4l2-common.h>
 #include <media/v4l2-ioctl.h>
 
-#ifdef CONFIG_VIDEO_V4L1_COMPAT
-/* Include V4L1 specific functions. Should be removed soon */
-#include <linux/videodev.h>
-#endif
-
 MODULE_DESCRIPTION("v4l2 driver module for cx2388x based TV cards");
 MODULE_AUTHOR("Gerd Knorr <kraxel@bytesex.org> [SuSE Labs]");
 MODULE_LICENSE("GPL");
index d972828d1cbefd4db919f742baa291c7c9a78b94..bca768a1f34cc3b7aeeb99a9cd9ae7fc04527606 100644 (file)
@@ -53,7 +53,7 @@
 #include <linux/i2c.h>
 #include <linux/kthread.h>
 #include <linux/freezer.h>
-#include <linux/videodev2.h>
+#include <linux/videodev.h>
 #include <media/v4l2-device.h>
 #include <media/v4l2-ioctl.h>
 #include <media/v4l2-i2c-drv-legacy.h>
index 05c14a29375ae6f921899b0ce28db21f218c39c0..003120c074827964c758393e660815c09d7e70a2 100644 (file)
@@ -14,7 +14,7 @@
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/delay.h>
-#include <linux/videodev.h>
+#include <linux/videodev2.h>
 #include <media/v4l2-common.h>
 #include <media/v4l2-chip-ident.h>
 #include <linux/i2c.h>
index aa7fa1f73a5694a4207d158e6577a38970c01e3c..6a4ae89a81a911ddb0ba497b5a53072e1bdb141e 100644 (file)
 #include "saa7134.h"
 #include <media/v4l2-common.h>
 
-#ifdef CONFIG_VIDEO_V4L1_COMPAT
-/* Include V4L1 specific functions. Should be removed soon */
-#include <linux/videodev.h>
-#endif
-
 /* ------------------------------------------------------------------ */
 
 unsigned int video_debug;
index 2830b5e33aec97c90b94acfd9756def5aa50d13c..9fadb331a40b6716b628c1345214b1365d2cadbe 100644 (file)
@@ -25,8 +25,6 @@
 #include <linux/types.h>
 #include <linux/wait.h>
 
-#include <linux/videodev.h>
-
 #ifndef O_NONCAP
 #define O_NONCAP       O_TRUNC
 #endif
index 6a79555474740d296ffe7eec7fe048e0145bc61e..583f9c158e63fdacef5324c6147aa51a897bf4e7 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/kernel.h>
 
 #define __OLD_VIDIOC_ /* To allow fixing old calls */
+#include <linux/videodev.h>
 #include <linux/videodev2.h>
 
 #ifdef CONFIG_VIDEO_V4L1
index 616eb1a8dbee3a5bdf69c3e48fb955d185957d96..980620f411f0dd5b1241b3af37f1119c7c3ea991 100644 (file)
 #include <linux/mutex.h>
 #include <linux/videodev2.h>
 #include <linux/dma-mapping.h>
-#ifdef CONFIG_VIDEO_V4L1_COMPAT
-/* Include V4L1 specific functions. Should be removed soon */
-#include <linux/videodev.h>
-#endif
 #include <linux/interrupt.h>
 #include <linux/kthread.h>
 #include <linux/highmem.h>
index 038ff32b01b85943fdc572fb6266becb9c4f4ada..dcade619cbd8454db5ba93166064eba0ccf39c35 100644 (file)
@@ -57,7 +57,7 @@
 #include <linux/module.h>
 #include <linux/init.h>
 #include <linux/delay.h>
-#include <linux/videodev2.h>
+#include <linux/videodev.h>
 #include <media/v4l2-common.h>
 #include <media/v4l2-ioctl.h>
 #include <linux/parport.h>
index fd5c4c87a73b4b30204acb54c75390f40e3a1b05..2a25580a4b66bf1a667f9dc81cdb954324a2d12c 100644 (file)
@@ -42,6 +42,7 @@
 #include <asm/page.h>
 #include <asm/uaccess.h>
 #include <linux/page-flags.h>
+#include <linux/videodev.h>
 #include <media/v4l2-ioctl.h>
 
 #include "w9968cf.h"
index 2dd8d90aedf90a7887bb289b4a394320ffc4c94e..b7f03d1637302f8e8e5fb72f1983cd6039b4000e 100644 (file)
@@ -59,7 +59,7 @@
 
 #include <linux/spinlock.h>
 
-#include <linux/videodev2.h>
+#include <linux/videodev.h>
 #include <media/v4l2-common.h>
 #include <media/v4l2-ioctl.h>
 #include "videocodec.h"
index 837f392fbe9761bad9cadaf26f02ffa2d0a8bda0..b19eab140977258ae145b48510307dc9401ef713 100644 (file)
 #include <linux/ioctl.h>
 #include <linux/videodev2.h>
 
+#if defined(__MIN_V4L1) && defined (__KERNEL__)
+
+/*
+ * Used by those V4L2 core functions that need a minimum V4L1 support,
+ * in order to allow V4L1 Compatibilty code compilation.
+ */
+
+struct video_mbuf
+{
+       int     size;           /* Total memory to map */
+       int     frames;         /* Frames */
+       int     offsets[VIDEO_MAX_FRAME];
+};
+
+#define VIDIOCGMBUF            _IOR('v',20, struct video_mbuf)         /* Memory map buffer info */
+
+#else
 #if defined(CONFIG_VIDEO_V4L1_COMPAT) || !defined (__KERNEL__)
 
 #define VID_TYPE_CAPTURE       1       /* Can capture */
@@ -312,6 +329,7 @@ struct video_code
 #define VID_PLAY_END_MARK              14
 
 #endif /* CONFIG_VIDEO_V4L1_COMPAT */
+#endif /* __MIN_V4L1 */
 
 #endif /* __LINUX_VIDEODEV_H */
 
index a8b4c0b678ec01fd0e7fb646029d4751a54b9934..7a4529defa8841ffa606d8af52d2dac289e5de29 100644 (file)
@@ -15,6 +15,7 @@
 #include <linux/mutex.h>
 #include <linux/compiler.h> /* need __user */
 #ifdef CONFIG_VIDEO_V4L1_COMPAT
+#define __MIN_V4L1
 #include <linux/videodev.h>
 #else
 #include <linux/videodev2.h>