Commit 6dc4efc6 authored by Fabio Estevam's avatar Fabio Estevam Committed by Liam Girdwood

regulator: mc13892: Fix voltage unit in test case.

Voltage values should be expressed in microvolts, not in milivolts.
Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarRanjani Vaidyanathan <ra5478@freescale.com>
Acked-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarLiam Girdwood <lrg@slimlogic.co.uk>
parent ecb9c4f5
...@@ -452,9 +452,9 @@ static int mc13892_sw_regulator_set_voltage(struct regulator_dev *rdev, ...@@ -452,9 +452,9 @@ static int mc13892_sw_regulator_set_voltage(struct regulator_dev *rdev,
if (ret) if (ret)
goto err; goto err;
if (value > 1375) if (value > 1375000)
hi = 1; hi = 1;
else if (value < 1100) else if (value < 1100000)
hi = 0; hi = 0;
else else
hi = valread & MC13892_SWITCHERS0_SWxHI; hi = valread & MC13892_SWITCHERS0_SWxHI;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment