regulator: tps51632: Fix writing to wrong register when enable_pwm_dvfs is set
authorAxel Lin <axel.lin@ingics.com>
Mon, 26 Nov 2012 15:42:14 +0000 (23:42 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 27 Nov 2012 20:17:01 +0000 (20:17 +0000)
commit9997f3ffbbcde01bcd5966eeb26bc41243715021
treeef5150327fd009710f913fbd4d8184b4eaf4c2bb
parent7bde76726fa296defc0eafc602284a7676817348
regulator: tps51632: Fix writing to wrong register when enable_pwm_dvfs is set

When tps->enable_pwm_dvfs is true, write to TPS51632_VOLTAGE_BASE_REG rather
than TPS51632_VOLTAGE_SELECT_REG.

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