]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: Merge tps65217_pmic_ldo234_ops and tps65217_pmic_dcdc_ops to tps65217_pmic_ops
authorAxel Lin <axel.lin@gmail.com>
Mon, 12 Mar 2012 04:11:46 +0000 (12:11 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 12 Mar 2012 10:50:46 +0000 (10:50 +0000)
commit7ea48483a7454947aac811b5e04a18059c35bf90
tree1df848f9b0cbc50c29f72c9c3f842fc5d59d5b0c
parent7ac62ceb28d71a400ca383b39d064308417ce63b
regulator: Merge tps65217_pmic_ldo234_ops and tps65217_pmic_dcdc_ops to tps65217_pmic_ops

Most callback functions implementation for tps65217_pmic_ldo234_ops and
tps65217_pmic_dcdc_ops are the same except the rid range checking.

This patch uses tps65217_pmic_ops for all DCDCx, LDO2, LDO3, and LDO4.
And rework tps65217_pmic_set_voltage to make it can be called for
DCDCx, LDO2, LDO3, and LDO4.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/tps65217-regulator.c