diff options
author | Baolin Wang <baolin.wang7@gmail.com> | 2020-03-06 03:34:10 +0100 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2020-03-06 21:31:23 +0100 |
commit | 241eaabc3c315cdfea505725a43de848f498527f (patch) | |
tree | c4ce87754efe1711723ae2c02aa793d8fc8eec32 /include | |
parent | power: supply: sc27xx: Add POWER_SUPPLY_PROP_CHARGE_NOW attribute (diff) | |
download | linux-241eaabc3c315cdfea505725a43de848f498527f.tar.xz linux-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')
-rw-r--r-- | include/linux/power/charger-manager.h | 2 |
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 |