Skip to contentSkip to conversation

gpio: mcp23s08: Select REGMAP/REGMAP_I2C to fix build error

PATCH In review Axel Lin 3 participants 3 messages Feb 2, 2017 – Feb 4, 2017 GPIO

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 gpio: mcp23s08: Select REGMAP/REGMAP_I2C to fix build error

This driver now using devm_regmap_init/devm_regmap_init_i2c, so it needs to select REGMAP/REGMAP_I2C accordingly.

Fixes ("3d84fdb3f0b5 gpio: mcp23s08: use regmap")
---
 drivers/gpio/Kconfig | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpio/Kconfig +2 -0
index 2d77392..28e6219 100644
@@ -1213,6 +1213,8 @@ config GPIO_MCP23S08
 	tristate "Microchip MCP23xxx I/O expander"
 	depends on OF_GPIO
 	select GPIOLIB_IRQCHIP
+	select REGMAP_I2C if I2C
+	select REGMAP if SPI_MASTER
 	help
 	  SPI/I2C driver for Microchip MCP23S08/MCP23S17/MCP23008/MCP23017
 	  I/O expanders.
Signature · 1 line
2.9.3
Acked-by on v1 1/1
#1 lore raw

Hi,

Quoted 14 lines · Axel Lin

This driver now using devm_regmap_init/devm_regmap_init_i2c, so it needs to select REGMAP/REGMAP_I2C accordingly.

Fixes ("3d84fdb3f0b5 gpio: mcp23s08: use regmap")
---
 drivers/gpio/Kconfig | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpio/Kconfig +0 -0
index 2d77392..28e6219 100644

drivers/gpio/Kconfig config GPIO_MCP23S08 · line 1220

Quoted 8 lines
drivers/gpio/Kconfig +2 -0
@@ -1213,6 +1213,8 @@ config GPIO_MCP23S08
 	tristate "Microchip MCP23xxx I/O expander"
 	depends on OF_GPIO
 	select GPIOLIB_IRQCHIP
+	select REGMAP_I2C if I2C
+	select REGMAP if SPI_MASTER
 	help
 	  SPI/I2C driver for Microchip MCP23S08/MCP23S17/MCP23008/MCP23017
 	  I/O expanders.

-- Sebastian

#2 lore raw
In reply to Axel Lin
Quoted 5 lines · Axel Lin

This driver now using devm_regmap_init/devm_regmap_init_i2c, so it needs to select REGMAP/REGMAP_I2C accordingly.

Fixes ("3d84fdb3f0b5 gpio: mcp23s08: use regmap")

Patch applied with Sebastian's ACK.

Yours,
Linus Walleij