]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/linux/power_supply.h
libata: switch to using block layer tagging support
[linux-2.6-omap-h63xx.git] / include / linux / power_supply.h
index ea96ead1d39daa0ac621d12ae28633e30e4c7f71..f9348cba6dc11ec32ed425e4d271ba6100de43ab 100644 (file)
@@ -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);