diff options
author | Axel Lin <axel.lin@gmail.com> | 2012-03-15 16:00:07 +0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-04-01 14:59:35 +0400 |
commit | 0ec446ea9a1cc86bfeb0c724a490701271d02fa5 (patch) | |
tree | 47d64671ae6c217e460fb8fc0f0ef5b07f24c488 /drivers/regulator/tps62360-regulator.c | |
parent | 9210f05b4eb0e9d08b527417fa6ebc043a232bd6 (diff) | |
download | linux-0ec446ea9a1cc86bfeb0c724a490701271d02fa5.tar.xz |
regulator: Refactor to use one da9052_ldo_ops/da9052_dcdc_ops for all LDOs/DCDCs
In current implementation, da9052_ldo_ops and da9052_ldo5_6_ops are very
similar, only the set_voltage is slightly different.
da9052_buckperi_ops and da9052_dcdc_ops are also similar.
This patch adds da9052_regulator_set_voltage for the set_voltage callback
used by all LDOs and DCDCs. Rework da9052_get_regulator_voltage_sel and
da9052_set_dcdc_voltage to make it possible to be shared by all DCDCs.
Rework da9052_list_voltage to make it to be shared by all DCDCs and LDOs.
Then we can remove da9052_ldo5_6_ops and da9052_buckperi_ops.
We can also remove DA9052_LDO5_6 and DA9052_BUCKPERI macros which is not used
now.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator/tps62360-regulator.c')
0 files changed, 0 insertions, 0 deletions