From 631a1fc4d4d8839f7ea04f4d54cf8f247b17ff85 Mon Sep 17 00:00:00 2001 From: Mark Brown Date: Mon, 29 Jul 2013 16:49:46 +0100 Subject: [PATCH 1/2] regulator: build: Allow most regulators to be built as modules Mostly for testing without bloating the kernel image rather than actual utility. Signed-off-by: Mark Brown --- drivers/regulator/Kconfig | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig index 759b601b54ef..445b40c65253 100644 --- a/drivers/regulator/Kconfig +++ b/drivers/regulator/Kconfig @@ -65,7 +65,7 @@ config REGULATOR_USERSPACE_CONSUMER If unsure, say no. config REGULATOR_88PM8607 - bool "Marvell 88PM8607 Power regulators" + tristate "Marvell 88PM8607 Power regulators" depends on MFD_88PM860X=y help This driver supports 88PM8607 voltage regulator chips. @@ -200,7 +200,7 @@ config REGULATOR_LP3972 on National Semiconductors LP3972 PMIC config REGULATOR_LP872X - bool "TI/National Semiconductor LP8720/LP8725 voltage regulators" + tristate "TI/National Semiconductor LP8720/LP8725 voltage regulators" depends on I2C=y select REGMAP_I2C help @@ -216,7 +216,7 @@ config REGULATOR_LP8755 9 mode multiphase configuration. config REGULATOR_LP8788 - bool "TI LP8788 Power Regulators" + tristate "TI LP8788 Power Regulators" depends on MFD_LP8788 help This driver supports LP8788 voltage regulator chip. @@ -382,7 +382,7 @@ config REGULATOR_S5M8767 supports DVS mode with 8bits of output voltage control. config REGULATOR_TI_ABB - bool "TI Adaptive Body Bias on-chip LDO" + tristate "TI Adaptive Body Bias on-chip LDO" depends on ARCH_OMAP help Select this option to support Texas Instruments' on-chip Adaptive Body @@ -492,7 +492,7 @@ config REGULATOR_TPS80031 output to control regulators. config REGULATOR_TWL4030 - bool "TI TWL4030/TWL5030/TWL6030/TPS659x0 PMIC" + tristate "TI TWL4030/TWL5030/TWL6030/TPS659x0 PMIC" depends on TWL4030_CORE help This driver supports the voltage regulators provided by From 613965fb49d507faa189ebf31767a907d98bb7fd Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Fri, 30 Aug 2013 22:13:44 +0800 Subject: [PATCH 2/2] regulator: lp872x: Make REGULATOR_LP872X depend on I2C rather than I2C=y lp872x regulator driver can be built a module after commit 631a1fc "regulator: build: Allow most regulators to be built as modules". Make REGULATOR_LP872X depend on I2C to allow building lp872x module when I2C=m. Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- drivers/regulator/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/Kconfig b/drivers/regulator/Kconfig index 445b40c65253..37f697dc4b4c 100644 --- a/drivers/regulator/Kconfig +++ b/drivers/regulator/Kconfig @@ -201,7 +201,7 @@ config REGULATOR_LP3972 config REGULATOR_LP872X tristate "TI/National Semiconductor LP8720/LP8725 voltage regulators" - depends on I2C=y + depends on I2C select REGMAP_I2C help This driver supports LP8720/LP8725 PMIC