diff options
Diffstat (limited to 'linux/include')
-rw-r--r-- | linux/include/media/v4l2-dev.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/linux/include/media/v4l2-dev.h b/linux/include/media/v4l2-dev.h index 24ab95924..45dfc7a04 100644 --- a/linux/include/media/v4l2-dev.h +++ b/linux/include/media/v4l2-dev.h @@ -363,6 +363,9 @@ void *priv; #endif }; +/* Class-dev to video-device */ +#define to_video_device(cd) container_of(cd, struct video_device, class_dev) + /* Version 2 functions */ extern int video_register_device(struct video_device *vfd, int type, int nr); void video_unregister_device(struct video_device *); @@ -385,7 +388,6 @@ extern int video_usercopy(struct inode *inode, struct file *file, #include <linux/mm.h> #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 __must_check video_device_create_file(struct video_device *vfd, struct class_device_attribute *attr) |