regulator: Use tps65912_set_voltage_sel for both DCDCx and LDOx
authorAxel Lin <axel.lin@gmail.com>
Wed, 14 Mar 2012 02:18:45 +0000 (10:18 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 14 Mar 2012 12:37:22 +0000 (12:37 +0000)
commit831c986f5dfc9f29f5237697029f7faf24521413
treead8bb8c924291396b857ecd2c4924f33310dcbbe
parent0651eed5e094a079a0a9fccd80a41cb3e7f2aa99
regulator: Use tps65912_set_voltage_sel for both DCDCx and LDOx

commit 42b5ef "regulator: tps65912: Use simple equations to get register address"
uses tps65912_get_sel_register to replace tps65912_get_dcdc_sel_register
and tps65912_get_ldo_sel_register.

Now tps65912_set_voltage_dcdc_sel and tps65912_set_voltage_ldo_sel has exactly
the same implementation. Merge them to tps65912_set_voltage_sel function.

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