regulator: mc13892: Fix voltage unit in test case.
authorFabio Estevam <[email protected]>
Mon, 16 May 2011 13:54:27 +0000 (10:54 -0300)
committerLiam Girdwood <[email protected]>
Fri, 27 May 2011 09:49:10 +0000 (10:49 +0100)
Voltage values should be expressed in microvolts, not in milivolts.

Signed-off-by: Fabio Estevam <[email protected]>
Signed-off-by: Ranjani Vaidyanathan <[email protected]>
Acked-by: Mark Brown <[email protected]>
Signed-off-by: Liam Girdwood <[email protected]>
drivers/regulator/mc13892-regulator.c

index 33d43b26d53bf8f00b9ad1109ecd6b4ab3044019..3285d41842f281d4433cbab2e5752d5b50c1632c 100644 (file)
@@ -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;