aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/power
diff options
context:
space:
mode:
authorBaolin Wang <baolin.wang7@gmail.com>2020-03-06 10:34:10 +0800
committerSebastian Reichel <sebastian.reichel@collabora.com>2020-03-06 21:31:23 +0100
commit241eaabc3c315cdfea505725a43de848f498527f (patch)
treec4ce87754efe1711723ae2c02aa793d8fc8eec32 /include/linux/power
parentpower: supply: sc27xx: Add POWER_SUPPLY_PROP_CHARGE_NOW attribute (diff)
downloadlinux-dev-241eaabc3c315cdfea505725a43de848f498527f.tar.xz
linux-dev-241eaabc3c315cdfea505725a43de848f498527f.zip
power: supply: Allow charger manager can be built as a module
Allow charger manager can be built as a module like other charger drivers. Signed-off-by: Baolin Wang <baolin.wang7@gmail.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'include/linux/power')
-rw-r--r--include/linux/power/charger-manager.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/power/charger-manager.h b/include/linux/power/charger-manager.h
index ad19e68e1fc3..ae94dcebd936 100644
--- a/include/linux/power/charger-manager.h
+++ b/include/linux/power/charger-manager.h
@@ -248,7 +248,7 @@ struct charger_manager {
u64 charging_end_time;
};
-#ifdef CONFIG_CHARGER_MANAGER
+#if IS_ENABLED(CONFIG_CHARGER_MANAGER)
extern void cm_notify_event(struct power_supply *psy,
enum cm_event_types type, char *msg);
#else