From 227d01d09f86548134030d82e3c1cdfb1c7e2d93 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Mon, 12 Dec 2005 21:32:02 +0000 Subject: 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 --- linux/include/linux/videodev.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'linux') 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__ */ -- cgit v1.2.3