diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/power_supply.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h index 79e90b3d3288..f0139b460a72 100644 --- a/include/linux/power_supply.h +++ b/include/linux/power_supply.h | |||
| @@ -371,6 +371,8 @@ devm_power_supply_register_no_ws(struct device *parent, | |||
| 371 | extern void power_supply_unregister(struct power_supply *psy); | 371 | extern void power_supply_unregister(struct power_supply *psy); |
| 372 | extern int power_supply_powers(struct power_supply *psy, struct device *dev); | 372 | extern int power_supply_powers(struct power_supply *psy, struct device *dev); |
| 373 | 373 | ||
| 374 | #define to_power_supply(device) container_of(device, struct power_supply, dev) | ||
| 375 | |||
| 374 | extern void *power_supply_get_drvdata(struct power_supply *psy); | 376 | extern void *power_supply_get_drvdata(struct power_supply *psy); |
| 375 | /* For APM emulation, think legacy userspace. */ | 377 | /* For APM emulation, think legacy userspace. */ |
| 376 | extern struct class *power_supply_class; | 378 | extern struct class *power_supply_class; |
