linux-sg2042/drivers/regulator
Axel Lin 321d2abaca regulator: Rework s5m8767_set_voltage to support both LDOs and BUCKs
s5m8767_set_voltage not only implement set_voltage callbacks for LDOs,
but also for BUCKs when s5m8767->buck_gpioindex is not set.
s5m8767_set_voltage_buck actually only for buck[2|3|4] when
s5m8767->buck_gpioindex is set.
Conditionally calling s5m8767_set_voltage in s5m8767_set_voltage_buck makes
the code hard to read.

I think merging s5m8767_set_voltage_buck and s5m8767_set_voltage actually
simplifies things. It's easy to use buck234_vol pointer to differentiate if
we need to control voltage for buck[2|3|4] by DVS GPIOs.

This patch reworks s5m8767_set_voltage to support both LDOx and BUCKx in all
cases.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Sangbeom Kim <sbkim73@samsung.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
2012-04-10 09:53:48 +01:00
..
88pm8607.c regulator: core: Use a struct to pass in regulator runtime configuration 2012-04-09 12:37:09 +01:00
Kconfig regulator: Add support for RICOH PMIC RC5T583 regulator 2012-04-04 11:48:02 +01:00
Makefile regulator: Add support for RICOH PMIC RC5T583 regulator 2012-04-04 11:48:02 +01:00
aat2870-regulator.c regulator: core: Use a struct to pass in regulator runtime configuration 2012-04-09 12:37:09 +01:00
ab3100.c regulator: core: Use a struct to pass in regulator runtime configuration 2012-04-09 12:37:09 +01:00
ab8500.c regulator: Fix build of ab8500 2012-04-10 09:36:34 +01:00
ad5398.c regulator: core: Use a struct to pass in regulator runtime configuration 2012-04-09 12:37:09 +01:00
anatop-regulator.c regulator: anatop: patching to device-tree property "reg". 2012-03-28 11:52:10 +01:00
core.c Linux 3.4-rc2 2012-04-10 09:52:59 +01:00
da903x.c regulator: Fix a typo in da903x.c 2012-04-10 09:52:53 +01:00
da9052-regulator.c regulator: core: Use a struct to pass in regulator runtime configuration 2012-04-09 12:37:09 +01:00
db8500-prcmu.c regulator: core: Use a struct to pass in regulator runtime configuration 2012-04-09 12:37:09 +01:00
dbx500-prcmu.c regulators/db8500: split off shared dbx500 code 2012-01-20 12:01:29 +00:00
dbx500-prcmu.h regulators/db8500: split off shared dbx500 code 2012-01-20 12:01:29 +00:00
dummy.c regulator: core: Use a struct to pass in regulator runtime configuration 2012-04-09 12:37:09 +01:00
dummy.h regulator: fix build when CONFIG_REGULATOR_DUMMY=n 2010-10-28 22:40:32 +01:00
fixed-helper.c regulator: Remove non-existent parameter from fixed-helper.c kernel doc 2012-03-31 19:41:20 +01:00
fixed.c regulator: core: Use a struct to pass in regulator runtime configuration 2012-04-09 12:37:09 +01:00
gpio-regulator.c regulator: core: Use a struct to pass in regulator runtime configuration 2012-04-09 12:37:09 +01:00
isl6271a-regulator.c regulator: core: Use a struct to pass in regulator runtime configuration 2012-04-09 12:37:09 +01:00
lp3971.c regulator: core: Use a struct to pass in regulator runtime configuration 2012-04-09 12:37:09 +01:00
lp3972.c regulator: core: Use a struct to pass in regulator runtime configuration 2012-04-09 12:37:09 +01:00
max1586.c regulator: core: Use a struct to pass in regulator runtime configuration 2012-04-09 12:37:09 +01:00
max8649.c regulator: core: Use a struct to pass in regulator runtime configuration 2012-04-09 12:37:09 +01:00
max8660.c regulator: core: Use a struct to pass in regulator runtime configuration 2012-04-09 12:37:09 +01:00
max8925-regulator.c regulator: core: Use a struct to pass in regulator runtime configuration 2012-04-09 12:37:09 +01:00
max8952.c regulator: core: Use a struct to pass in regulator runtime configuration 2012-04-09 12:37:09 +01:00
max8997.c regulator: core: Use a struct to pass in regulator runtime configuration 2012-04-09 12:37:09 +01:00
max8998.c regulator: core: Use a struct to pass in regulator runtime configuration 2012-04-09 12:37:09 +01:00
mc13xxx-regulator-core.c regulator: Convert mc13xxx regulator drivers to set_voltage_sel 2012-04-02 23:24:46 +01:00
mc13xxx.h regulator: Convert mc13xxx regulator drivers to set_voltage_sel 2012-04-02 23:24:46 +01:00
mc13783-regulator.c regulator: Fix build error for mc13783 and mc13892 2012-04-10 09:52:53 +01:00
mc13892-regulator.c Linux 3.4-rc2 2012-04-10 09:52:59 +01:00
of_regulator.c regulator: Set apply_uV only when min and max voltages are defined 2012-01-26 11:01:21 +00:00
pcap-regulator.c regulator: core: Use a struct to pass in regulator runtime configuration 2012-04-09 12:37:09 +01:00
pcf50633-regulator.c regulator: core: Use a struct to pass in regulator runtime configuration 2012-04-09 12:37:09 +01:00
rc5t583-regulator.c regulator: core: Use a struct to pass in regulator runtime configuration 2012-04-09 12:37:09 +01:00
s5m8767.c regulator: Rework s5m8767_set_voltage to support both LDOs and BUCKs 2012-04-10 09:53:48 +01:00
tps6105x-regulator.c regulator: core: Use a struct to pass in regulator runtime configuration 2012-04-09 12:37:09 +01:00
tps6507x-regulator.c regulator: core: Use a struct to pass in regulator runtime configuration 2012-04-09 12:37:09 +01:00
tps6524x-regulator.c regulator: core: Use a struct to pass in regulator runtime configuration 2012-04-09 12:37:09 +01:00
tps6586x-regulator.c Linux 3.4-rc2 2012-04-10 09:52:59 +01:00
tps62360-regulator.c regulator: core: Use a struct to pass in regulator runtime configuration 2012-04-09 12:37:09 +01:00
tps65023-regulator.c regulator: core: Use a struct to pass in regulator runtime configuration 2012-04-09 12:37:09 +01:00
tps65090-regulator.c regulator: core: Use a struct to pass in regulator runtime configuration 2012-04-09 12:37:09 +01:00
tps65217-regulator.c regulator: core: Use a struct to pass in regulator runtime configuration 2012-04-09 12:37:09 +01:00
tps65910-regulator.c regulator: core: Use a struct to pass in regulator runtime configuration 2012-04-09 12:37:09 +01:00
tps65912-regulator.c regulator: core: Use a struct to pass in regulator runtime configuration 2012-04-09 12:37:09 +01:00
twl-regulator.c regulator: core: Use a struct to pass in regulator runtime configuration 2012-04-09 12:37:09 +01:00
userspace-consumer.c regulator: Convert virtual and userspace regulator consumer drivers to use module_platform_driver() 2011-11-28 11:49:13 +00:00
virtual.c regulator: Convert virtual and userspace regulator consumer drivers to use module_platform_driver() 2011-11-28 11:49:13 +00:00
wm831x-dcdc.c Linux 3.4-rc2 2012-04-10 09:52:59 +01:00
wm831x-isink.c Linux 3.4-rc2 2012-04-10 09:52:59 +01:00
wm831x-ldo.c Linux 3.4-rc2 2012-04-10 09:52:59 +01:00
wm8350-regulator.c Linux 3.4-rc2 2012-04-10 09:52:59 +01:00
wm8400-regulator.c regulator: core: Use a struct to pass in regulator runtime configuration 2012-04-09 12:37:09 +01:00
wm8994-regulator.c regulator: core: Use a struct to pass in regulator runtime configuration 2012-04-09 12:37:09 +01:00