Skip to content

Commit a6c6a5f

Browse files
rddunlapsre
authored andcommitted
power: supply: pm8916_lbc: observe EXTCON config setting
When CONFIG_EXTCON=m and CONFIG_CHARGER_PM8916_LBC=y, there are build errors. Fix them by having CHARGER_PM8916_LBC depend on the setting of EXTCON. aarch64-linux-ld: drivers/power/supply/pm8916_lbc.o: in function `pm8916_lbc_charger_state_changed_irq': pm8916_lbc.c:(.text+0xe8): undefined reference to `extcon_set_state_sync' aarch64-linux-ld: drivers/power/supply/pm8916_lbc.o: in function `pm8916_lbc_charger_probe': pm8916_lbc.c:(.text+0x638): undefined reference to `devm_extcon_dev_allocate' aarch64-linux-ld: pm8916_lbc.c:(.text+0x650): undefined reference to `devm_extcon_dev_register' aarch64-linux-ld: pm8916_lbc.c:(.text+0x688): undefined reference to `extcon_set_state_sync' Fixes: f8d7a3d ("power: supply: Add driver for pm8916 lbc") Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Cc: Nikita Travkin <nikita@trvn.ru> Cc: Sebastian Reichel <sre@kernel.org> Cc: linux-pm@vger.kernel.org Link: https://lore.kernel.org/r/20230918205825.25864-1-rdunlap@infradead.org Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
1 parent 6f9fb8a commit a6c6a5f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/power/supply/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -643,6 +643,7 @@ config BATTERY_PM8916_BMS_VM
643643
config CHARGER_PM8916_LBC
644644
tristate "Qualcomm PM8916 Linear Battery Charger support"
645645
depends on MFD_SPMI_PMIC || COMPILE_TEST
646+
depends on EXTCON || !EXTCON
646647
help
647648
Say Y here to add support for Linear Battery Charger block
648649
found in some Qualcomm PMICs such as PM8916. This hardware

0 commit comments

Comments
 (0)