drivers/regulator: DA9058 REGULATOR driver
PATCH v6 7/7 drivers/regulator: DA9058 REGULATOR driver
This patch is relative to next-20130419 of linux-next
This is the REGULATOR component driver of the Dialog DA9058 PMIC. This driver is just one component of the whole DA9058 PMIC driver. It depends on the CORE component driver of the DA9058 MFD.
There are 4 CamelCase warnings from scripts/checkpatch.pl, but they are due to struture field names in the regulator core not due to names created in this driver
Changes relative to V5 of this patch:
- rebased to next-20130419 in git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
- removed redundant #include <linux/mfd/da9058/version.h>
- reverted regulator_desc.min_uv to min_uV
- reverted regulator_desc.uv_step to uV_step
- reverted regulation_constraints.min_uv to min_uV
- reverted regulation_constraints.max_uv to max_uV
- corrected dates on copyright statements
- removed system specific regulator consumer
- use multiple exit points in functions when no common code
is to be executed.
- embedded a regulator_init_data in the platform data
--- drivers/regulator/Kconfig | 11 ++ drivers/regulator/Makefile | 1 + drivers/regulator/da9058-regulator.c | 199 ++++++++++++++++++++++++++++++++++ 3 files changed, 211 insertions(+) create mode 100644 drivers/regulator/da9058-regulator.c
drivers/regulator/Kconfig +11 -0
@@ -64,6 +64,17 @@ config REGULATOR_USERSPACE_CONSUMER If unsure, say no. +config REGULATOR_DA9058 + tristate "Support regulators on Dialog Semiconductor DA9058 PMIC" + depends on MFD_DA9058 + help + Say y here to support the BUCKs and LDOs regulators found on + Dialog Semiconductor DA9058 PMIC. + + This driver can also be built as a module. If so, the module + will be called da9058-regulator. + + config REGULATOR_GPIO tristate "GPIO regulator support" depends on GPIOLIB
drivers/regulator/Makefile +1 -0
@@ -25,6 +25,7 @@ obj-$(CONFIG_REGULATOR_DB8500_PRCMU) += db8500-prcmu.o obj-$(CONFIG_REGULATOR_FAN53555) += fan53555.o obj-$(CONFIG_REGULATOR_GPIO) += gpio-regulator.o obj-$(CONFIG_REGULATOR_ISL6271A) += isl6271a-regulator.o +obj-$(CONFIG_REGULATOR_DA9058) += da9058-regulator.o obj-$(CONFIG_REGULATOR_LP3971) += lp3971.o obj-$(CONFIG_REGULATOR_LP3972) += lp3972.o obj-$(CONFIG_REGULATOR_LP872X) += lp872x.o
drivers/regulator/da9058-regulator.c new file +199 -0
199 lines not on this page · raw message
Signature · 1 line
end-of-patch for NEW DRIVER V6