aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/regulator/mc13892-regulator.c
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2011-05-16 09:54:27 -0400
committerLiam Girdwood <lrg@slimlogic.co.uk>2011-05-27 05:49:10 -0400
commit6dc4efc6d5429292f29009f6569fbb9a53929dd6 (patch)
tree57a725881db1d6e0565da2d4733aaafc82c61a3b /drivers/regulator/mc13892-regulator.c
parentecb9c4f5956afa2ca0a20a1f99932b9ff81de854 (diff)
regulator: mc13892: Fix voltage unit in test case.
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>
Diffstat (limited to 'drivers/regulator/mc13892-regulator.c')
-rw-r--r--drivers/regulator/mc13892-regulator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/regulator/mc13892-regulator.c b/drivers/regulator/mc13892-regulator.c
index 33d43b26d53b..3285d41842f2 100644
--- a/drivers/regulator/mc13892-regulator.c
+++ b/drivers/regulator/mc13892-regulator.c
@@ -452,9 +452,9 @@ static int mc13892_sw_regulator_set_voltage(struct regulator_dev *rdev,
452 if (ret) 452 if (ret)
453 goto err; 453 goto err;
454 454
455 if (value > 1375) 455 if (value > 1375000)
456 hi = 1; 456 hi = 1;
457 else if (value < 1100) 457 else if (value < 1100000)
458 hi = 0; 458 hi = 0;
459 else 459 else
460 hi = valread & MC13892_SWITCHERS0_SWxHI; 460 hi = valread & MC13892_SWITCHERS0_SWxHI;