Commit 241eaabc authored by Baolin Wang's avatar Baolin Wang Committed by Sebastian Reichel

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: default avatarBaolin Wang <baolin.wang7@gmail.com>
Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
parent 1c5dfc5e
...@@ -480,7 +480,7 @@ config CHARGER_GPIO ...@@ -480,7 +480,7 @@ config CHARGER_GPIO
called gpio-charger. called gpio-charger.
config CHARGER_MANAGER config CHARGER_MANAGER
bool "Battery charger manager for multiple chargers" tristate "Battery charger manager for multiple chargers"
depends on REGULATOR depends on REGULATOR
select EXTCON select EXTCON
help help
......
...@@ -248,7 +248,7 @@ struct charger_manager { ...@@ -248,7 +248,7 @@ struct charger_manager {
u64 charging_end_time; u64 charging_end_time;
}; };
#ifdef CONFIG_CHARGER_MANAGER #if IS_ENABLED(CONFIG_CHARGER_MANAGER)
extern void cm_notify_event(struct power_supply *psy, extern void cm_notify_event(struct power_supply *psy,
enum cm_event_types type, char *msg); enum cm_event_types type, char *msg);
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment