diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-07-23 06:31:19 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-07-23 06:31:19 -0300 |
commit | b4e1b90af5a9c2712330b9ed882e8953244be9a8 (patch) | |
tree | 22a8009b3011758edc72864531354f7c3c899633 /linux/include | |
parent | bb7f5a89eeea423828328f3af1b7097c15d60e7e (diff) | |
download | mediapointer-dvb-s2-b4e1b90af5a9c2712330b9ed882e8953244be9a8.tar.gz mediapointer-dvb-s2-b4e1b90af5a9c2712330b9ed882e8953244be9a8.tar.bz2 |
Fix for compilation without V4L1 or V4L1_COMPAT
From: Mauro Carvalho Chehab <mchehab@infradead.org>
Removed usage of HAVE_V4L1
Including videodev.h will just include videodev2.h if V4L1 is not supported
V4L1 code at core drivers will honor CONFIG_V4L1_COMPAT stuff
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/include')
-rw-r--r-- | linux/include/linux/videodev.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/linux/include/linux/videodev.h b/linux/include/linux/videodev.h index 41bc7e960..518c7a321 100644 --- a/linux/include/linux/videodev.h +++ b/linux/include/linux/videodev.h @@ -12,10 +12,11 @@ #ifndef __LINUX_VIDEODEV_H #define __LINUX_VIDEODEV_H -#define HAVE_V4L1 1 - #include <linux/videodev2.h> +#ifdef CONFIG_VIDEO_V4L1_COMPAT +#define HAVE_V4L1 1 + struct video_capability { char name[32]; @@ -336,6 +337,8 @@ struct video_code #define VID_HARDWARE_SN9C102 38 #define VID_HARDWARE_ARV 39 +#endif /* CONFIG_VIDEO_V4L1_COMPAT */ + #endif /* __LINUX_VIDEODEV_H */ /* |