Skip to contentSkip to conversation

regulator: ltc3589: Fix module dependency

PATCH Applied Axel Lin 3 participants 3 messages May 27, 2014 Voltage and current regulator framework

lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 regulator: ltc3589: Fix module dependency

Make this driver depend on I2C and select REGMAP_I2C to fix build failure. Also allows this driver to be built as module.

---
 drivers/regulator/Kconfig | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/regulator/Kconfig +3 -1
index 8f5c880..c2fa0b4 100644
@@ -273,7 +273,9 @@ config REGULATOR_LP8788
 	  This driver supports LP8788 voltage regulator chip.
 
 config REGULATOR_LTC3589
-	bool "LTC3589 8-output voltage regulator"
+	tristate "LTC3589 8-output voltage regulator"
+	depends on I2C
+	select REGMAP_I2C
 	help
 	  This enables support for the LTC3589, LTC3589-1, and LTC3589-2
 	  8-output regulators controlled via I2C.
Signature · 1 line
1.8.3.2
Acked-by on v1 1/1
#1 lore raw

Am Dienstag, den 27.05.2014, 13:51 +0800 schrieb Axel Lin:

Quoted 5 lines

Make this driver depend on I2C and select REGMAP_I2C to fix build failure. Also allows this driver to be built as module.

Quoted 9 lines
---
 drivers/regulator/Kconfig | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/regulator/Kconfig +0 -0
index 8f5c880..c2fa0b4 100644

drivers/regulator/Kconfig config REGULATOR_LP8788 · line 278

Quoted 7 lines
drivers/regulator/Kconfig +3 -1
@@ -273,7 +273,9 @@ config REGULATOR_LP8788
 	  This driver supports LP8788 voltage regulator chip.
 
 config REGULATOR_LTC3589
-	bool "LTC3589 8-output voltage regulator"
+	tristate "LTC3589 8-output voltage regulator"
+	depends on I2C
+	select REGMAP_I2C

thanks
Philipp

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

Make this driver depend on I2C and select REGMAP_I2C to fix build failure. Also allows this driver to be built as module.

Applied, thanks.