summaryrefslogtreecommitdiff
path: root/include/linux/power
diff options
context:
space:
mode:
authorBaolin Wang <baolin.wang7@gmail.com>2020-03-06 05:34:10 +0300
committerSebastian Reichel <sebastian.reichel@collabora.com>2020-03-06 23:31:23 +0300
commit241eaabc3c315cdfea505725a43de848f498527f (patch)
treec4ce87754efe1711723ae2c02aa793d8fc8eec32 /include/linux/power
parent1c5dfc5e3f2df5892a849621d729daa87cfef436 (diff)
downloadlinux-241eaabc3c315cdfea505725a43de848f498527f.tar.xz
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