power: qcom-smbb: add extcon dependency
PATCH 1/1 power: qcom-smbb: add extcon dependency
Building the smbb driver without extcon results in a link failure:
drivers/power/built-in.o: In function `smbb_usb_valid_handler':
:(.text+0x3190): undefined reference to extcon_set_cable_state_' drivers/power/built-in.o: In function smbb_charger_probe':
:(.text+0x3880): undefined reference to devm_extcon_dev_allocate' :(.text+0x3898): undefined reference to devm_extcon_dev_register'
This adds a Kconfig dependency.
--- drivers/power/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/power/Kconfig +1 -0
@@ -394,6 +394,7 @@ config CHARGER_QCOM_SMBB tristate "Qualcomm Switch-Mode Battery Charger and Boost" depends on MFD_SPMI_PMIC || COMPILE_TEST depends on OF + depends on EXTCON help Say Y to include support for the Switch-Mode Battery Charger and Boost (SMBB) hardware found in Qualcomm PM8941 PMICs. The charger
Signature · 1 line
2.9.0
Hi,
Quoted 21 lines · Arnd Bergmann
Building the smbb driver without extcon results in a link failure:
drivers/power/built-in.o: In function `smbb_usb_valid_handler':
:(.text+0x3190): undefined reference toextcon_set_cable_state_' drivers/power/built-in.o: In functionsmbb_charger_probe':
:(.text+0x3880): undefined reference todevm_extcon_dev_allocate' :(.text+0x3898): undefined reference todevm_extcon_dev_register'This adds a
Kconfigdependency.Signed-off-by Arnd Bergmann <[email protected]>Fixes 56d7df8716b2 ("power: Add Qualcomm SMBB driver")--- drivers/power/Kconfig | 1 + 1 file changed, 1 insertion(+)drivers/power/Kconfig +0
-0
drivers/power/Kconfig config CHARGER_QCOM_SMBB · line 400
Quoted 7 lines
drivers/power/Kconfig +1
-0@@ -394,6 +394,7 @@ config CHARGER_QCOM_SMBB tristate "Qualcomm Switch-Mode Battery Charger and Boost" depends on MFD_SPMI_PMIC || COMPILE_TEST depends on OF + depends on EXTCON help Say Y to include support for the Switch-Mode Battery Charger and Boost (SMBB) hardware found in Qualcomm PM8941 PMICs. The charger
Thanks, queued.
-- Sebastian
Quoted 15 lines · Sebastian Reichel
Hi,
Quoted 12 lines · Arnd Bergmann
Building the smbb driver without extcon results in a link failure:
drivers/power/built-in.o: In function `smbb_usb_valid_handler':
:(.text+0x3190): undefined reference toextcon_set_cable_state_' drivers/power/built-in.o: In functionsmbb_charger_probe':
:(.text+0x3880): undefined reference todevm_extcon_dev_allocate' :(.text+0x3898): undefined reference todevm_extcon_dev_register'This adds a
Kconfigdependency.Signed-off-by Arnd Bergmann <[email protected]>Fixes 56d7df8716b2 ("power: Add Qualcomm SMBB driver")
extcon use was only recently introduced so this should be
detection")
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
Hi,
Quoted 12 lines · Stephen Boyd
Quoted 11 lines · Sebastian Reichel
Quoted 10 lines · Arnd Bergmann
Building the smbb driver without extcon results in a link failure:
drivers/power/built-in.o: In function `smbb_usb_valid_handler':
:(.text+0x3190): undefined reference toextcon_set_cable_state_' drivers/power/built-in.o: In functionsmbb_charger_probe':
:(.text+0x3880): undefined reference todevm_extcon_dev_allocate' :(.text+0x3898): undefined reference todevm_extcon_dev_register'This adds a
Kconfigdependency.
Quoted 7 lines
Quoted 2 lines
Quoted 2 lines
Signed-off-by Arnd Bergmann <[email protected]>Fixes 56d7df8716b2 ("power: Add Qualcomm SMBB driver")extcon use was only recently introduced so this should be
Fixes 0b7fe26ae602 ("power: qcom_smbb: Make an extcon for usb cabledetection")
Right, I didn't notice the Fixes line is wrong. Since I will have to rebase now, I will just squash this into 0b7fe26ae602.
-- Sebastian
Quoted 16 lines · CEST Sebastian Reichel
Quoted 15 lines · Stephen Boyd
Quoted 13 lines · Sebastian Reichel
Quoted 12 lines · Arnd Bergmann
Building the smbb driver without extcon results in a link failure:
drivers/power/built-in.o: In function `smbb_usb_valid_handler':
:(.text+0x3190): undefined reference toextcon_set_cable_state_' drivers/power/built-in.o: In functionsmbb_charger_probe':
:(.text+0x3880): undefined reference todevm_extcon_dev_allocate' :(.text+0x3898): undefined reference todevm_extcon_dev_register'This adds a
Kconfigdependency.Signed-off-by Arnd Bergmann <[email protected]>Fixes 56d7df8716b2 ("power: Add Qualcomm SMBB driver")
Quoted 7 lines
Quoted 4 lines
extcon use was only recently introduced so this should be
Fixes 0b7fe26ae602 ("power: qcom_smbb: Make an extcon for usb cabledetection")
Right, I didn't notice the Fixes line is wrong. Since I will have to rebase now, I will just squash this into
0b7fe26ae602.
Ok, thanks and sorry for the mixup, I must have pasted the wrong line.
Arnd