Skip to contentSkip to conversation

regulator: aat2870: Add AAT2870 regulator driver

PATCH Jin Park 2 participants 2 messages Jul 4, 2011 Voltage and current regulator framework

lore
Share & tools
lore

Jin Park

author
#0 lore raw

Mark,

Thanks for your review.

Quoted 4 lines

Review

Quoted 2 lines
(quoted diff) +2 -0
+config REGULATOR_AAT2870
+	bool "AnalogicTech AAT2870 Regulators"

Why bool?

There is no specific reason, so I have changed to tristate.

Quoted 7 lines

This should be a set_voltage_sel(), the core will do all the above for you and the driver only needs to worry about the register writes. Note also that the first test isn't well formed - so long as we can select a voltage between min_uV and max_uV we're fine even if one or both of those limits is outside the valid range.

Again, get_voltage_sel().

I have changed set_voltage() and get_voltage() to set_voltage_sel() and get_voltage_sel(), according to your mention.
Please review below codes.

Thanks,
Jin.

Add regulator driver for AnalogicTech AAT2870.

---
 drivers/regulator/Kconfig             |    7 +
 drivers/regulator/Makefile            |    1 +
 drivers/regulator/aat2870-regulator.c |  232 +++++++++++++++++++++++++++++++++
 3 files changed, 240 insertions(+), 0 deletions(-)
 create mode 100644 drivers/regulator/aat2870-regulator.c
drivers/regulator/Kconfig +7 -0
index a1dffd9..065892a 100644
@@ -309,5 +309,12 @@ config REGULATOR_TPS65910
 	help
 	  This driver supports TPS65910 voltage regulator chips.
 
+config REGULATOR_AAT2870
+	tristate "AnalogicTech AAT2870 Regulators"
+	depends on MFD_AAT2870_CORE
+	help
+	  If you have a AnalogicTech AAT2870 say Y to enable the
+	  regulator driver.
+
 endif
 
drivers/regulator/Makefile +1 -0
index 87ba2fd..040d5aa 100644
@@ -44,5 +44,6 @@ obj-$(CONFIG_REGULATOR_ISL6271A) += isl6271a-regulator.o
 obj-$(CONFIG_REGULATOR_AB8500)	+= ab8500.o
 obj-$(CONFIG_REGULATOR_DB8500_PRCMU) += db8500-prcmu.o
 obj-$(CONFIG_REGULATOR_TPS65910) += tps65910-regulator.o
+obj-$(CONFIG_REGULATOR_AAT2870) += aat2870-regulator.o
 
 ccflags-$(CONFIG_REGULATOR_DEBUG) += -DDEBUG
drivers/regulator/aat2870-regulator.c new file +232 -0

232 lines not on this page · raw message

Signature · 1 line
1.7.1
Acked-by
#1 lore raw
Quoted 3 lines · Jin Park

Add regulator driver for AnalogicTech AAT2870.

When posting new revisions of patches all the stuff in SubmittingPatches still applies, especially the bit about not including extraneous stuff before the ---. Doing this means it's much easier to apply your patches with tools like git am.