OpenCloudOS-Kernel/drivers/regulator
Mark Brown 4ab5b3d92c regulator: core: Provide regmap based voltage_sel operations
Since the voltage selector operations are intended to directly map a
bitfield in the device register map into regulator API operations the
code for implementing them is usually very standard we can save some
code by providing standard implementations for devices using the regmap
API.

Drivers using regmap can pass their regmap in in the regmap_config
struct, set vsel_reg and vsel_mask in their regulator_desc and then
use regulator_{get,set}_voltage_sel_regmap in their ops. This saves
a small amount of code from each driver.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@ti.com>
2012-04-16 19:52:03 +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: Convert anatop to use a struct to pass in regulator runtime configuration 2012-04-10 17:28:53 +01:00
core.c regulator: core: Provide regmap based voltage_sel operations 2012-04-16 19:52:03 +01:00
da903x.c regulator: Fix a typo in da903x.c 2012-04-10 09:52:53 +01:00
da9052-regulator.c regulator: da9052: add device tree support 2012-04-13 15:45:32 +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: isl6271a-regulator: Use devm_kzalloc() 2012-04-13 09:59:39 +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: max1586: Use devm_kzalloc() 2012-04-13 09:59:39 +01:00
max8649.c regulator: max8649: Use devm_* APIs 2012-04-10 11:04:26 +01:00
max8660.c regulator: max8660: Use devm_kzalloc() 2012-04-13 09:59:39 +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: max8997: Use simple equation to get selector 2012-04-10 10:14:01 +01:00
max8998.c regulator: Convert max8998 to set_voltage_time_sel 2012-04-13 09:54:45 +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: Replace regulator_desc_[ldo|buck] by s5m8767_regulator_desc macro 2012-04-10 09:53:49 +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: Convert tps65xxx regulator drivers to use devm_kzalloc 2012-04-11 10:16:50 +01:00
tps6524x-regulator.c regulator: Convert tps65xxx regulator drivers to use devm_kzalloc 2012-04-11 10:16:50 +01:00
tps6586x-regulator.c Linux 3.4-rc2 2012-04-10 09:52:59 +01:00
tps62360-regulator.c regulator: tps62360: Convert to devm_regmap_init_i2c() 2012-04-10 11:04:27 +01:00
tps65023-regulator.c regulator: tps65023: Use devm_* APIs 2012-04-10 11:04:27 +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: Convert tps65xxx regulator drivers to use devm_kzalloc 2012-04-11 10:16:50 +01:00
tps65912-regulator.c regulator: Convert tps65xxx regulator drivers to use devm_kzalloc 2012-04-11 10:16:50 +01:00
twl-regulator.c regulator: twl-regulator: Use twlreg_grp helper function 2012-04-13 09:54:45 +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: wm8994: Convert to set_voltage_sel() 2012-04-15 12:07:50 +01:00