Skip to content

Commit

Permalink
regulator: mc13892: Fix voltage unit in test case.
Browse files Browse the repository at this point in the history
Voltage values should be expressed in microvolts, not in milivolts.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
  • Loading branch information
Fabio Estevam authored and Liam Girdwood committed May 27, 2011
1 parent ecb9c4f commit 6dc4efc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/regulator/mc13892-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -452,9 +452,9 @@ static int mc13892_sw_regulator_set_voltage(struct regulator_dev *rdev,
if (ret)
goto err;

if (value > 1375)
if (value > 1375000)
hi = 1;
else if (value < 1100)
else if (value < 1100000)
hi = 0;
else
hi = valread & MC13892_SWITCHERS0_SWxHI;
Expand Down

0 comments on commit 6dc4efc

Please sign in to comment.