regulator: Simplify implementation of tps65912_get_voltage_dcdc
authorAxel Lin <axel.lin@gmail.com>
Wed, 14 Mar 2012 02:20:01 +0000 (10:20 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 14 Mar 2012 12:37:23 +0000 (12:37 +0000)
commitc567556e75534316f1ae800b0a0fbbc687d0662e
treea66445c8ea0f9e81e5bc8a7685283eaf8c462f1c
parent831c986f5dfc9f29f5237697029f7faf24521413
regulator: Simplify implementation of tps65912_get_voltage_dcdc

Call tps65912_get_sel_register instead of duplicating the same code.

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