aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/device.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/device.h')
-rw-r--r--include/linux/device.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h
index f71a78d123ae..e49aa74f248c 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -193,6 +193,7 @@ struct class {
193 struct semaphore sem; /* locks children, devices, interfaces */ 193 struct semaphore sem; /* locks children, devices, interfaces */
194 struct class_attribute *class_attrs; 194 struct class_attribute *class_attrs;
195 struct device_attribute *dev_attrs; 195 struct device_attribute *dev_attrs;
196 struct kobject *dev_kobj;
196 197
197 int (*dev_uevent)(struct device *dev, struct kobj_uevent_env *env); 198 int (*dev_uevent)(struct device *dev, struct kobj_uevent_env *env);
198 199
@@ -205,6 +206,8 @@ struct class {
205 struct pm_ops *pm; 206 struct pm_ops *pm;
206}; 207};
207 208
209extern struct kobject *sysfs_dev_block_kobj;
210extern struct kobject *sysfs_dev_char_kobj;
208extern int __must_check class_register(struct class *class); 211extern int __must_check class_register(struct class *class);
209extern void class_unregister(struct class *class); 212extern void class_unregister(struct class *class);
210extern int class_for_each_device(struct class *class, void *data, 213extern int class_for_each_device(struct class *class, void *data,