summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2008-10-20 18:17:23 +1100
committerStephen Rothwell <sfr@canb.auug.org.au>2008-10-20 18:17:23 +1100
commitb3b558ccc40ca8884984c90a4f85e5a63501d11a (patch)
tree4a96dbb78175ec3c09437383303846146819971f /include
parent973ed9fc7f7e0f9bac8752b8ef95103f2d2f51e9 (diff)
parented8c3174dd227031d1f3b9fa4fbb512f8f623434 (diff)
Merge commit 'battery/master'
Diffstat (limited to 'include')
-rw-r--r--include/linux/power_supply.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h
index ea96ead1d39d..f9348cba6dc1 100644
--- a/include/linux/power_supply.h
+++ b/include/linux/power_supply.h
@@ -165,6 +165,12 @@ struct power_supply_info {
extern void power_supply_changed(struct power_supply *psy);
extern int power_supply_am_i_supplied(struct power_supply *psy);
+#if defined(CONFIG_POWER_SUPPLY) || defined(CONFIG_POWER_SUPPLY_MODULE)
+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_register(struct device *parent,
struct power_supply *psy);
extern void power_supply_unregister(struct power_supply *psy);