projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ecb9c4f
)
regulator: mc13892: Fix voltage unit in test case.
author
Fabio Estevam
<fabio.estevam@freescale.com>
Mon, 16 May 2011 13:54:27 +0000
(10:54 -0300)
committer
Liam Girdwood
<lrg@slimlogic.co.uk>
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 <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>
drivers/regulator/mc13892-regulator.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/mc13892-regulator.c
b/drivers/regulator/mc13892-regulator.c
index
33d43b2
..
3285d41
100644
(file)
--- 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,
if (ret)
goto err;
- if (value > 1375)
+ if (value > 1375
000
)
hi = 1;
- else if (value < 1100)
+ else if (value < 1100
000
)
hi = 0;
else
hi = valread & MC13892_SWITCHERS0_SWxHI;