aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/videodev.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@brturbo.com.br>2005-11-09 00:38:01 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-09 10:56:23 -0500
commitf958b68d40b870f5a0d1582f094bc93a53af7cd7 (patch)
treeabcaf487e5d1f55619b7e70639db1c9aced1756c /include/linux/videodev.h
parent01cb9633e1b294c604c2dfa01dcac95daf775213 (diff)
[PATCH] v4l: 829: fixed user mode compiling
- Fixed user mode compiling. Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/videodev.h')
-rw-r--r--include/linux/videodev.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/videodev.h b/include/linux/videodev.h
index 392592a040c5..91140091ced2 100644
--- a/include/linux/videodev.h
+++ b/include/linux/videodev.h
@@ -27,6 +27,18 @@ video_device_remove_file(struct video_device *vfd,
27 class_device_remove_file(&vfd->class_dev, attr); 27 class_device_remove_file(&vfd->class_dev, attr);
28} 28}
29 29
30#if OBSOLETE_OWNER /* to be removed in 2.6.15 */
31/* helper functions to access driver private data. */
32static inline void *video_get_drvdata(struct video_device *dev)
33{
34 return dev->priv;
35}
36
37static inline void video_set_drvdata(struct video_device *dev, void *data)
38{
39 dev->priv = data;
40}
41#endif
30 42
31extern int video_exclusive_open(struct inode *inode, struct file *file); 43extern int video_exclusive_open(struct inode *inode, struct file *file);
32extern int video_exclusive_release(struct inode *inode, struct file *file); 44extern int video_exclusive_release(struct inode *inode, struct file *file);