aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Lin <[email protected]>2014-05-27 13:51:49 +0800
committerMark Brown <[email protected]>2014-05-27 12:06:32 +0100
commitac1d686846d23b2665e9d4791e32af70e251da90 (patch)
tree53928b2ffb4436cba0cd6422dab9b669c30659f5
parent3eb2c7ecb7ea0fad4a53cbedcb87341dcffcea2b (diff)
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. Reported-by: Stephen Rothwell <[email protected]> Signed-off-by: Axel Lin <[email protected]> Acked-by: Philipp Zabel <[email protected]> Signed-off-by: Mark Brown <[email protected]>
-rw-r--r--drivers/regulator/Kconfig4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig
index 5599a61bd88c..4c12caba37ee 100644
--- a/drivers/regulator/Kconfig
+++ b/drivers/regulator/Kconfig
@@ -266,7 +266,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.