diff options
Diffstat (limited to 'include/linux/device.h')
-rw-r--r-- | include/linux/device.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 4410464b134a..ed4e39f2c423 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
@@ -194,6 +194,7 @@ struct class { | |||
194 | struct kobject *dev_kobj; | 194 | struct kobject *dev_kobj; |
195 | 195 | ||
196 | int (*dev_uevent)(struct device *dev, struct kobj_uevent_env *env); | 196 | int (*dev_uevent)(struct device *dev, struct kobj_uevent_env *env); |
197 | char *(*nodename)(struct device *dev); | ||
197 | 198 | ||
198 | void (*class_release)(struct class *class); | 199 | void (*class_release)(struct class *class); |
199 | void (*dev_release)(struct device *dev); | 200 | void (*dev_release)(struct device *dev); |
@@ -289,6 +290,7 @@ struct device_type { | |||
289 | const char *name; | 290 | const char *name; |
290 | struct attribute_group **groups; | 291 | struct attribute_group **groups; |
291 | int (*uevent)(struct device *dev, struct kobj_uevent_env *env); | 292 | int (*uevent)(struct device *dev, struct kobj_uevent_env *env); |
293 | char *(*nodename)(struct device *dev); | ||
292 | void (*release)(struct device *dev); | 294 | void (*release)(struct device *dev); |
293 | 295 | ||
294 | struct dev_pm_ops *pm; | 296 | struct dev_pm_ops *pm; |
@@ -488,6 +490,7 @@ extern struct device *device_find_child(struct device *dev, void *data, | |||
488 | extern int device_rename(struct device *dev, char *new_name); | 490 | extern int device_rename(struct device *dev, char *new_name); |
489 | extern int device_move(struct device *dev, struct device *new_parent, | 491 | extern int device_move(struct device *dev, struct device *new_parent, |
490 | enum dpm_order dpm_order); | 492 | enum dpm_order dpm_order); |
493 | extern const char *device_get_nodename(struct device *dev, const char **tmp); | ||
491 | 494 | ||
492 | /* | 495 | /* |
493 | * Root device objects for grouping under /sys/devices | 496 | * Root device objects for grouping under /sys/devices |