aboutsummaryrefslogtreecommitdiffstats
path: root/include/media/v4l2-dev.h
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2008-07-20 05:35:02 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-23 15:42:52 -0400
commit22a04f106346c3af019135f2de3cabf9ac41c3ba (patch)
tree520b5260c3883f153cb55192f7df92899fbd062e /include/media/v4l2-dev.h
parent5e85e732f0ed56aa97a3ba26ac2b93ffe597a208 (diff)
V4L/DVB (8429): videodev: renamed 'class_dev' to 'dev'
The class_dev field is a normal device, not a class device. This is very confusing and now that the old 'dev' field has been renamed to 'parent' we can rename 'class_dev' to just 'dev'. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'include/media/v4l2-dev.h')
-rw-r--r--include/media/v4l2-dev.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/media/v4l2-dev.h b/include/media/v4l2-dev.h
index 5ae261fbcb7e..185372ffa270 100644
--- a/include/media/v4l2-dev.h
+++ b/include/media/v4l2-dev.h
@@ -88,18 +88,18 @@ struct video_device
88 const struct file_operations *fops; 88 const struct file_operations *fops;
89 89
90 /* sysfs */ 90 /* sysfs */
91 struct device class_dev; /* v4l device */ 91 struct device dev; /* v4l device */
92 struct device *parent; /* device parent */ 92 struct device *parent; /* device parent */
93 93
94 /* device info */ 94 /* device info */
95 char name[32]; 95 char name[32];
96 int type; /* v4l1 */ 96 int type; /* v4l1 */
97 int type2; /* v4l2 */ 97 int type2; /* v4l2 */
98 int minor; 98 int minor;
99 /* attribute to diferentiate multiple indexs on one physical device */ 99 /* attribute to diferentiate multiple indexs on one physical device */
100 int index; 100 int index;
101 101
102 int debug; /* Activates debug level*/ 102 int debug; /* Activates debug level*/
103 103
104 /* Video standard vars */ 104 /* Video standard vars */
105 v4l2_std_id tvnorms; /* Supported tv norms */ 105 v4l2_std_id tvnorms; /* Supported tv norms */
@@ -345,7 +345,7 @@ void *priv;
345}; 345};
346 346
347/* Class-dev to video-device */ 347/* Class-dev to video-device */
348#define to_video_device(cd) container_of(cd, struct video_device, class_dev) 348#define to_video_device(cd) container_of(cd, struct video_device, dev)
349 349
350/* Version 2 functions */ 350/* Version 2 functions */
351extern int video_register_device(struct video_device *vfd, int type, int nr); 351extern int video_register_device(struct video_device *vfd, int type, int nr);
@@ -373,7 +373,7 @@ static inline int __must_check
373video_device_create_file(struct video_device *vfd, 373video_device_create_file(struct video_device *vfd,
374 struct device_attribute *attr) 374 struct device_attribute *attr)
375{ 375{
376 int ret = device_create_file(&vfd->class_dev, attr); 376 int ret = device_create_file(&vfd->dev, attr);
377 if (ret < 0) 377 if (ret < 0)
378 printk(KERN_WARNING "%s error: %d\n", __func__, ret); 378 printk(KERN_WARNING "%s error: %d\n", __func__, ret);
379 return ret; 379 return ret;
@@ -382,7 +382,7 @@ static inline void
382video_device_remove_file(struct video_device *vfd, 382video_device_remove_file(struct video_device *vfd,
383 struct device_attribute *attr) 383 struct device_attribute *attr)
384{ 384{
385 device_remove_file(&vfd->class_dev, attr); 385 device_remove_file(&vfd->dev, attr);
386} 386}
387 387
388#endif /* CONFIG_VIDEO_V4L1_COMPAT */ 388#endif /* CONFIG_VIDEO_V4L1_COMPAT */