Skip to content

Commit 1ea48c5

Browse files
arndbsre
authored andcommitted
power: supply: max77976: add EXTCON dependency
max8971 is written to work with or without extcon, but it fails to link when built-in when the extcon subsystem is in a loadable module: x86_64-linux-ld: drivers/power/supply/max8971_charger.o: in function `max8971_probe': max8971_charger.c:(.text+0x2ab): undefined reference to `extcon_find_edev_by_node' Add the appropriate dependency that allows the working cases but prevents the link failure. Fixes: 60cd40e ("power: supply: Add support for Maxim MAX8971 charger") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Link: https://lore.kernel.org/r/20250503140431.438727-1-arnd@kernel.org Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
1 parent 60cd40e commit 1ea48c5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/power/supply/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,7 @@ config CHARGER_MAX77976
620620
config CHARGER_MAX8971
621621
tristate "Maxim MAX8971 battery charger driver"
622622
depends on I2C
623+
depends on EXTCON || !EXTCON
623624
select REGMAP_I2C
624625
help
625626
The MAX8971 is a compact, high-frequency, high-efficiency switch-mode

0 commit comments

Comments
 (0)