summaryrefslogtreecommitdiff
path: root/linux/include
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-04-09 15:43:41 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-04-09 15:43:41 -0300
commit47d9ea56db3d35c645477ed1540e852886230d74 (patch)
tree9ccfae6abf276926bcabb38147ac6f7452bddcb5 /linux/include
parent8e43b1719bccf0441257cd803e36d75e34e55d9f (diff)
downloadmediapointer-dvb-s2-47d9ea56db3d35c645477ed1540e852886230d74.tar.gz
mediapointer-dvb-s2-47d9ea56db3d35c645477ed1540e852886230d74.tar.bz2
Create V4L1 config options
From: Mauro Carvalho Chehab <mchehab@infradead.org> V4L1 API is depreciated and should be removed soon from kernel. This patch adds two new options, one to disable V4L1 drivers, and another to disable V4L1 compat module. This way, it would be easy to check what still depends on V4L1 stuff, allowing also to test if app works fine with V4L2 only support. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/include')
-rw-r--r--linux/include/linux/videodev2.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/linux/include/linux/videodev2.h b/linux/include/linux/videodev2.h
index 54b8aca85..5d46a8d2a 100644
--- a/linux/include/linux/videodev2.h
+++ b/linux/include/linux/videodev2.h
@@ -1245,8 +1245,13 @@ extern char *v4l2_type_names[];
/* Compatibility layer interface -- v4l1-compat module */
typedef int (*v4l2_kioctl)(struct inode *inode, struct file *file,
unsigned int cmd, void *arg);
+
+#ifdef CONFIG_VIDEO_V4L1_COMPAT
int v4l_compat_translate_ioctl(struct inode *inode, struct file *file,
int cmd, void *arg, v4l2_kioctl driver_ioctl);
+#else
+#define v4l_compat_translate_ioctl(inode,file,cmd,arg,ioctl) -EINVAL
+#endif
/* 32 Bits compatibility layer for 64 bits processors */
extern long v4l_compat_ioctl32(struct file *file, unsigned int cmd,