diff options
| author | Rong Dian <b38775@freescale.com> | 2012-06-21 11:22:33 +0800 |
|---|---|---|
| committer | Eric Nelson <eric.nelson@boundarydevices.com> | 2012-08-28 09:49:13 -0700 |
| commit | 70971152b1cc317a40be69872600a95e9ba0753c (patch) | |
| tree | 86681810caf58f3cf84a6e8cea541ed14dd1ae71 /include | |
| parent | 04567078a0f694da7255745432597afc9a1eae7b (diff) | |
ENGR00214367-1 power_supply: add get_supplier_property
add get_supplier_property interface.
This patch was written by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
originally.
Signed-off-by: Rong Dian <b38775@freescale.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/power_supply.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h index 204c18dfdc9e..b13bb89e0873 100644 --- a/include/linux/power_supply.h +++ b/include/linux/power_supply.h @@ -207,7 +207,9 @@ extern int power_supply_is_system_supplied(void); #else static inline int power_supply_is_system_supplied(void) { return -ENOSYS; } #endif - +extern int power_supply_get_supplier_property(struct power_supply *psy, + enum power_supply_property psp, + union power_supply_propval *val); extern int power_supply_register(struct device *parent, struct power_supply *psy); extern void power_supply_unregister(struct power_supply *psy); |
