diff options
author | Mauro Carvalho Chehab <devnull@localhost> | 2005-12-12 21:32:02 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <devnull@localhost> | 2005-12-12 21:32:02 +0000 |
commit | 227d01d09f86548134030d82e3c1cdfb1c7e2d93 (patch) | |
tree | 662054874e58403569d7f06a81eefd18c1197c9f /linux/include | |
parent | 082ef2a10623a43abf5c985dd05ee66d2af3bef4 (diff) | |
download | mediapointer-dvb-s2-227d01d09f86548134030d82e3c1cdfb1c7e2d93.tar.gz mediapointer-dvb-s2-227d01d09f86548134030d82e3c1cdfb1c7e2d93.tar.bz2 |
Reverted patchset 3127 since it breaks pvrusb2 compilation.
kernel-sync
- patchset 3127 does remove old stuff from videodev.h, but breaks some
drivers in kernel and pvrusb2.
- should be reapplied later.
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'linux/include')
-rw-r--r-- | linux/include/linux/videodev.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/linux/include/linux/videodev.h b/linux/include/linux/videodev.h index c3ff02435..26b09a153 100644 --- a/linux/include/linux/videodev.h +++ b/linux/include/linux/videodev.h @@ -29,6 +29,19 @@ video_device_remove_file(struct video_device *vfd, } #endif +#if OBSOLETE_OWNER /* to be removed in 2.6.15 */ +/* helper functions to access driver private data. */ +static inline void *video_get_drvdata(struct video_device *dev) +{ + return dev->priv; +} + +static inline void video_set_drvdata(struct video_device *dev, void *data) +{ + dev->priv = data; +} +#endif + extern int video_exclusive_open(struct inode *inode, struct file *file); extern int video_exclusive_release(struct inode *inode, struct file *file); #endif /* __KERNEL__ */ |