regulator: mp8859: add config option and build entry
authorMarkus Reichl <m.reichl@fivetechno.de>
Mon, 6 Jan 2020 21:16:25 +0000 (22:16 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 8 Jan 2020 15:57:30 +0000 (15:57 +0000)
Add entries for the mp8859 regulator driver
to the build system.

Signed-off-by: Markus Reichl <m.reichl@fivetechno.de>
Link: https://lore.kernel.org/r/20200106211633.2882-3-m.reichl@fivetechno.de
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/Kconfig
drivers/regulator/Makefile

index 5651274..593733a 100644 (file)
@@ -612,6 +612,17 @@ config REGULATOR_MCP16502
          through the regulator interface. In addition it enables
          suspend-to-ram/standby transition.
 
+config REGULATOR_MP8859
+       tristate "MPS MP8859 regulator driver"
+       depends on I2C
+       select REGMAP_I2C
+       help
+         Say y here to support the MP8859 voltage regulator. This driver
+         supports basic operations (get/set voltage) through the regulator
+         interface.
+         Say M here if you want to include support for the regulator as a
+         module. The module will be named "mp8859".
+
 config REGULATOR_MT6311
        tristate "MediaTek MT6311 PMIC"
        depends on I2C
index 9eccf93..8ba8e5d 100644 (file)
@@ -78,6 +78,7 @@ obj-$(CONFIG_REGULATOR_MC13783) += mc13783-regulator.o
 obj-$(CONFIG_REGULATOR_MC13892) += mc13892-regulator.o
 obj-$(CONFIG_REGULATOR_MC13XXX_CORE) +=  mc13xxx-regulator-core.o
 obj-$(CONFIG_REGULATOR_MCP16502) += mcp16502.o
+obj-$(CONFIG_REGULATOR_MP8859) += mp8859.o
 obj-$(CONFIG_REGULATOR_MT6311) += mt6311-regulator.o
 obj-$(CONFIG_REGULATOR_MT6323) += mt6323-regulator.o
 obj-$(CONFIG_REGULATOR_MT6358) += mt6358-regulator.o