Skip to content

Commit 241eaab

Browse files
baolin-wangsre
authored andcommitted
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 <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
1 parent 1c5dfc5 commit 241eaab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/power/supply/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ config CHARGER_GPIO
480480
called gpio-charger.
481481

482482
config CHARGER_MANAGER
483-
bool "Battery charger manager for multiple chargers"
483+
tristate "Battery charger manager for multiple chargers"
484484
depends on REGULATOR
485485
select EXTCON
486486
help

include/linux/power/charger-manager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ struct charger_manager {
248248
u64 charging_end_time;
249249
};
250250

251-
#ifdef CONFIG_CHARGER_MANAGER
251+
#if IS_ENABLED(CONFIG_CHARGER_MANAGER)
252252
extern void cm_notify_event(struct power_supply *psy,
253253
enum cm_event_types type, char *msg);
254254
#else

0 commit comments

Comments
 (0)