diff options
author | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-07-23 18:20:50 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-07-23 18:20:50 -0300 |
commit | 419cb65a4dd8a62d256dee2795a3cad4f1771b0b (patch) | |
tree | 5af179a268c491eba1a3ae1bc0c07a61e38b4957 /linux/include | |
parent | a779af526f7581a1b5113a2003cb7f8ac488cdac (diff) | |
download | mediapointer-dvb-s2-419cb65a4dd8a62d256dee2795a3cad4f1771b0b.tar.gz mediapointer-dvb-s2-419cb65a4dd8a62d256dee2795a3cad4f1771b0b.tar.bz2 |
Fix: compile for radio aimslab and aztech with V4L2 only
From: Mauro Carvalho Chehab <mchehab@infradead.org>
All radio devices use an obsolete mode of opening/release driver.
Since this is not V4L1 core, better to keep the method available for more
time than to rewrite open/release without a radio device to test, since the
newer method is much more complex than the previous one (although providing
support for multiple opens and multiple devices).
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'linux/include')
-rw-r--r-- | linux/include/media/v4l2-dev.h | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/linux/include/media/v4l2-dev.h b/linux/include/media/v4l2-dev.h index dd49f377d..c9a259b4f 100644 --- a/linux/include/media/v4l2-dev.h +++ b/linux/include/media/v4l2-dev.h @@ -9,7 +9,8 @@ #ifndef _V4L2_DEV_H #define _V4L2_DEV_H -#define OBSOLETE_OWNER 1 /* to be removed soon */ +#define OBSOLETE_OWNER 1 /* to be removed soon */ +#define OBSOLETE_DEVDATA 1 /* to be removed soon */ #include <linux/poll.h> #include <linux/fs.h> @@ -364,8 +365,6 @@ extern int video_usercopy(struct inode *inode, struct file *file, #ifdef HAVE_V4L1 #include <linux/mm.h> -extern struct video_device* video_devdata(struct file*); - #if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0) #define to_video_device(cd) container_of(cd, struct video_device, class_dev) static inline int @@ -396,10 +395,16 @@ static inline void video_set_drvdata(struct video_device *dev, void *data) { dev->priv = data; } + #endif +#endif /* HAVE_V4L1 */ + +#ifdef OBSOLETE_DEVDATA /* to be removed soon */ +/* Obsolete stuff - Still needed for radio devices and obsolete drivers */ +extern struct video_device* video_devdata(struct file*); extern int video_exclusive_open(struct inode *inode, struct file *file); extern int video_exclusive_release(struct inode *inode, struct file *file); -#endif /* HAVE_V4L1 */ +#endif #endif /* _V4L2_DEV_H */ |