Skip to content

Commit 37d1a62

Browse files
rddunlapsre
authored andcommitted
power: supply: rt5033_charger: recognize EXTCON setting
CHARGER_RT5033 should honor the EXTCON setting to prevent these build errors: riscv64-linux-ld: drivers/power/supply/rt5033_charger.o: in function `.L33': rt5033_charger.c:(.text.rt5033_charger_probe+0x578): undefined reference to `extcon_find_edev_by_node' riscv64-linux-ld: drivers/power/supply/rt5033_charger.o: in function `.L0 ': rt5033_charger.c:(.text.rt5033_charger_probe+0x64e): undefined reference to `devm_extcon_register_notifier_all' riscv64-linux-ld: drivers/power/supply/rt5033_charger.o: in function `.L96': rt5033_charger.c:(.text.rt5033_charger_extcon_work+0x32): undefined reference to `extcon_get_state' Fixes: 12cc585 ("power: supply: rt5033_charger: Add cable detection and USB OTG supply") Signed-off-by: Randy Dunlap <[email protected]> Cc: Jakob Hauser <[email protected]> Cc: Sebastian Reichel <[email protected]> Cc: Lee Jones <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sebastian Reichel <[email protected]>
1 parent 779873e commit 37d1a62

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
@@ -769,6 +769,7 @@ config BATTERY_RT5033
769769
config CHARGER_RT5033
770770
tristate "RT5033 battery charger support"
771771
depends on MFD_RT5033
772+
depends on EXTCON || !EXTCON
772773
help
773774
This adds support for battery charger in Richtek RT5033 PMIC.
774775
The device supports pre-charge mode, fast charge mode and

0 commit comments

Comments
 (0)