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)
commitfc56911bc6468c165894e0ca985b1130bb537955
tree1df848f9b0cbc50c29f72c9c3f842fc5d59d5b0c
parentdce7304f4b8ea9e12c1bd58747f16f579c4d7b2d
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