extcon: max14526: add CONFIG_I2C dependency
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.
--- drivers/extcon/Kconfig | 1 + 1 file changed, 1 insertion(+)
drivers/extcon/Kconfig +1 -0
@@ -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
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")Signed-off-by Arnd Bergmann <[email protected]>--- drivers/extcon/Kconfig | 1 + 1 file changed, 1 insertion(+)drivers/extcon/Kconfig +1
-0@@ -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