Skip to contentSkip to conversation

gpio: Correct dependencies for MCP230xx

PATCH In review Charles Perry 2 participants 2 messages May 7 – May 14 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 gpio: Correct dependencies for MCP230xx

This driver depends on DM_I2C and DM_SPI, add it.

Fixes 3b639f643889 ("gpio: mcp230xx: Add support for models with SPI interface.")

---

Notes:
Changes in v2:
* Mention SPI devices in the Kconfig help
* Add a Fixes: tag
* Collect Quentin's Reviewed-by: Charles Perry <[email protected]>

 drivers/gpio/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpio/Kconfig +2 -2
index 37cb672697c0..8cfdabf76cd8 100644
@@ -309,9 +309,9 @@ config MAX77663_GPIO
 
 config MCP230XX_GPIO
 	bool "MCP230XX GPIO driver"
-	depends on DM
+	depends on DM && DM_I2C && DM_SPI
 	help
-	  Support for Microchip's MCP230XX I2C connected GPIO devices.
+	  Support for Microchip's MCP230XX I2C and SPI connected GPIO devices.
 	  The following chips are supported:
 	   - MCP23008
 	   - MCP23017
Signature · 1 line
2.47.3
#1 lore raw
Quoted 3 lines · Charles Perry

This driver depends on DM_I2C and DM_SPI, add it.

Applied to u-boot/next, thanks!

[1/1] gpio: Correct dependencies for MCP230xx

      commit: 88338f9d147397c42bb996937b1ce31bca096626
Signature · 1 line
Tom