[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>
This commit is contained in:

committed by
Linus Torvalds

parent
01cb9633e1
commit
f958b68d40
@@ -27,6 +27,18 @@ video_device_remove_file(struct video_device *vfd,
|
||||
class_device_remove_file(&vfd->class_dev, attr);
|
||||
}
|
||||
|
||||
#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);
|
||||
|
Reference in New Issue
Block a user