From 83093cf018bf03dbb3a2400fca95107b850cabf7 Mon Sep 17 00:00:00 2001 From: Rong Dian Date: Thu, 21 Jun 2012 11:22:33 +0800 Subject: ENGR00214367-1 power_supply: add get_supplier_property add get_supplier_property interface. This patch was written by: Heikki Krogerus originally. Signed-off-by: Rong Dian --- include/linux/power_supply.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') 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); -- cgit v1.2.1