Skip to content

Commit 735a280

Browse files
committed
drivers: gpio: invert I2C config dependency for MCP23xxx
The GPIO_MCP230XX config currently depends on the I2C config. This means that the board/SoC must enable the I2C config to support MCP23xxx devices. Inverting this dependency allows declaring GPIO_MCP230XX directly in the board/SoC defconfig without explicitly enabling I2C. Signed-off-by: Arnaud Pouliquen <[email protected]> Suggested-by Fin Maaß <[email protected]>
1 parent 30e09d4 commit 735a280

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/Kconfig.mcp23xxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ menuconfig GPIO_MCP230XX
1717
DT_HAS_MICROCHIP_MCP23016_ENABLED || \
1818
DT_HAS_MICROCHIP_MCP23017_ENABLED || \
1919
DT_HAS_MICROCHIP_MCP23018_ENABLED
20-
depends on I2C
20+
select I2C
2121
select GPIO_MCP23XXX
2222
help
2323
Enable driver for MCP230XX I2C-based GPIO chip.

0 commit comments

Comments
 (0)