diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-11-20 10:02:06 +0900 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2013-01-03 03:33:12 +0000 |
commit | a651d51200ef80b1d65de782ff73f57cf9a65ff3 (patch) | |
tree | b379366caf360d60f17be9f75e6968914e34d2a6 | |
parent | 9ca39c6da78ca85b8e35fc8133da033b7ea27868 (diff) |
regulator: wm831x: Set the new rather than old value for DVS VSEL
commit 13ae633cf729b0ecb677b75b04886ff8fada8fad upstream.
Reported-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r-- | drivers/regulator/wm831x-dcdc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/wm831x-dcdc.c b/drivers/regulator/wm831x-dcdc.c index bd3531d8b2ac..77a6faf82120 100644 --- a/drivers/regulator/wm831x-dcdc.c +++ b/drivers/regulator/wm831x-dcdc.c @@ -330,7 +330,7 @@ static int wm831x_buckv_set_voltage(struct regulator_dev *rdev, if (vsel > dcdc->dvs_vsel) { ret = wm831x_set_bits(wm831x, dvs_reg, WM831X_DC1_DVS_VSEL_MASK, - dcdc->dvs_vsel); + vsel); if (ret == 0) dcdc->dvs_vsel = vsel; else |