diff options
Diffstat (limited to 'include/linux/device.h')
| -rw-r--r-- | include/linux/device.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 6a2d04c011bc..f71a78d123ae 100644 --- a/include/linux/device.h +++ b/include/linux/device.h | |||
| @@ -68,6 +68,8 @@ struct bus_type { | |||
| 68 | int (*resume_early)(struct device *dev); | 68 | int (*resume_early)(struct device *dev); |
| 69 | int (*resume)(struct device *dev); | 69 | int (*resume)(struct device *dev); |
| 70 | 70 | ||
| 71 | struct pm_ext_ops *pm; | ||
| 72 | |||
| 71 | struct bus_type_private *p; | 73 | struct bus_type_private *p; |
| 72 | }; | 74 | }; |
| 73 | 75 | ||
| @@ -131,6 +133,8 @@ struct device_driver { | |||
| 131 | int (*resume) (struct device *dev); | 133 | int (*resume) (struct device *dev); |
| 132 | struct attribute_group **groups; | 134 | struct attribute_group **groups; |
| 133 | 135 | ||
| 136 | struct pm_ops *pm; | ||
| 137 | |||
| 134 | struct driver_private *p; | 138 | struct driver_private *p; |
| 135 | }; | 139 | }; |
| 136 | 140 | ||
| @@ -197,6 +201,8 @@ struct class { | |||
| 197 | 201 | ||
| 198 | int (*suspend)(struct device *dev, pm_message_t state); | 202 | int (*suspend)(struct device *dev, pm_message_t state); |
| 199 | int (*resume)(struct device *dev); | 203 | int (*resume)(struct device *dev); |
| 204 | |||
| 205 | struct pm_ops *pm; | ||
| 200 | }; | 206 | }; |
| 201 | 207 | ||
| 202 | extern int __must_check class_register(struct class *class); | 208 | extern int __must_check class_register(struct class *class); |
| @@ -248,8 +254,11 @@ struct device_type { | |||
| 248 | struct attribute_group **groups; | 254 | struct attribute_group **groups; |
| 249 | int (*uevent)(struct device *dev, struct kobj_uevent_env *env); | 255 | int (*uevent)(struct device *dev, struct kobj_uevent_env *env); |
| 250 | void (*release)(struct device *dev); | 256 | void (*release)(struct device *dev); |
| 257 | |||
| 251 | int (*suspend)(struct device *dev, pm_message_t state); | 258 | int (*suspend)(struct device *dev, pm_message_t state); |
| 252 | int (*resume)(struct device *dev); | 259 | int (*resume)(struct device *dev); |
| 260 | |||
| 261 | struct pm_ops *pm; | ||
| 253 | }; | 262 | }; |
| 254 | 263 | ||
| 255 | /* interface for exporting device attributes */ | 264 | /* interface for exporting device attributes */ |
