]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit064b823c94f9c07207eedd105ec126540cd74ac8
treead8bb8c924291396b857ecd2c4924f33310dcbbe
parent5fbe8b222112ba8559f6b1af7a3efa267ebc5f2b
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