Skip to contentSkip to conversation

extcon: max14526: add CONFIG_I2C dependency

PATCH In review Arnd Bergmann 2 participants 2 messages May 20, 2025 – May 26, 2025 External connector subsystem (extcon)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 extcon: max14526: add CONFIG_I2C dependency

From: Arnd Bergmann <[email protected]>

When I2C is in a loadable module, the newly added driver causes a build failure. The problem is shown by Kconfig:

WARNING: unmet direct dependencies detected for REGMAP_I2C
Depends on [m]: I2C [=m]
Selected by [y]:
- EXTCON_MAX14526 [=y] && EXTCON [=y]

Add the required dependency here.

Fixes c2aeb8647e53 ("extcon: Add basic support for Maxim MAX14526 MUIC")
---
 drivers/extcon/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/extcon/Kconfig +1 -0
index 1096afc0b5bb..aec46bf03302 100644
@@ -136,6 +136,7 @@ config EXTCON_MAX8997
 
 config EXTCON_MAX14526
 	tristate "Maxim MAX14526 EXTCON Support"
+	depends on I2C
 	select IRQ_DOMAIN
 	select REGMAP_I2C
 	help
Signature · 1 line
2.39.5
#1 lore raw
Quoted 11 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

When I2C is in a loadable module, the newly added driver causes a build failure. The problem is shown by Kconfig:

WARNING: unmet direct dependencies detected for REGMAP_I2C
Depends on [m]: I2C [=m]
Selected by [y]:
- EXTCON_MAX14526 [=y] && EXTCON [=y]

Add the required dependency here.

Same as my patch:
https://lore.kernel.org/lkml/[email protected]/

Quoted 19 lines
Fixes c2aeb8647e53 ("extcon: Add basic support for Maxim MAX14526 MUIC")
---
 drivers/extcon/Kconfig | 1 +
 1 file changed, 1 insertion(+)
drivers/extcon/Kconfig +1 -0
index 1096afc0b5bb..aec46bf03302 100644
@@ -136,6 +136,7 @@ config EXTCON_MAX8997
 
 config EXTCON_MAX14526
 	tristate "Maxim MAX14526 EXTCON Support"
+	depends on I2C
 	select IRQ_DOMAIN
 	select REGMAP_I2C
 	help