regulator: Refactor tps6507x to use one tps6507x_pmic_ops for all LDOs and DCDCs
authorAxel Lin <axel.lin@gmail.com>
Mon, 12 Mar 2012 07:57:50 +0000 (15:57 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 14 Mar 2012 14:13:17 +0000 (14:13 +0000)
commitf2933d333118bff82e4b46fff605e31f799df5ce
tree1f868e5e6e40477a4c118201ffcdb667d57b689e
parent0a41685fd58f8a4fe097449063764420ebb7ed93
regulator: Refactor tps6507x to use one tps6507x_pmic_ops for all LDOs and DCDCs

All the callback functions implementation for DCDCx and LDOx are very similar,
I think it is ok to use one tps6507x_pmic_ops for all LDOs and DCDCs.
This refactor removes a couple of duplicated code.

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