aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/wm831x-dcdc.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2012-11-19 20:02:06 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-11-19 20:42:13 -0500
commit13ae633cf729b0ecb677b75b04886ff8fada8fad (patch)
tree880f317c88302f8d0064af8a1699089c643b9699 /drivers/regulator/wm831x-dcdc.c
parentf4a75d2eb7b1e2206094b901be09adb31ba63681 (diff)
regulator: wm831x: Set the new rather than old value for DVS VSEL
Reported-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/regulator/wm831x-dcdc.c')
-rw-r--r--drivers/regulator/wm831x-dcdc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/wm831x-dcdc.c b/drivers/regulator/wm831x-dcdc.c
index 782c228a19bd..416fe0a37f56 100644
--- a/drivers/regulator/wm831x-dcdc.c
+++ b/drivers/regulator/wm831x-dcdc.c
@@ -290,7 +290,7 @@ static int wm831x_buckv_set_voltage_sel(struct regulator_dev *rdev,
290 if (vsel > dcdc->dvs_vsel) { 290 if (vsel > dcdc->dvs_vsel) {
291 ret = wm831x_set_bits(wm831x, dvs_reg, 291 ret = wm831x_set_bits(wm831x, dvs_reg,
292 WM831X_DC1_DVS_VSEL_MASK, 292 WM831X_DC1_DVS_VSEL_MASK,
293 dcdc->dvs_vsel); 293 vsel);
294 if (ret == 0) 294 if (ret == 0)
295 dcdc->dvs_vsel = vsel; 295 dcdc->dvs_vsel = vsel;
296 else 296 else