diff options
author | Ranjani Vaidyanathan <ra5478@freescale.com> | 2011-05-11 19:13:43 -0500 |
---|---|---|
committer | Eric Miao <eric.miao@linaro.org> | 2011-08-16 12:36:56 +0800 |
commit | 7eb11d3fd2742e40908f88b8f458ad6c8461ce57 (patch) | |
tree | 99cfa0519e7fe787017c2438a8395765e1a9847c | |
parent | 9c19489c33e63928a87e36a659649aa888afd198 (diff) |
ENGR00143294-1: Fix bug in MC13892 driver
In set_voltage function, all voltages are not in microvolts.
Hence set_voltage function was failing. Change all voltages in
the function to be in microvolts.
Signed-off-by: Ranjani Vaidyanathan <ra5478@freescale.com>
Signed-off-by: Richard Zhao <richard.zhao@freescale.com>
Signed-off-by: Eric Miao <eric.miao@linaro.org>
-rw-r--r-- | drivers/regulator/mc13892-regulator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/regulator/mc13892-regulator.c b/drivers/regulator/mc13892-regulator.c index 6f15168e5ed..e90ba0511de 100644 --- a/drivers/regulator/mc13892-regulator.c +++ b/drivers/regulator/mc13892-regulator.c @@ -453,9 +453,9 @@ static int mc13892_sw_regulator_set_voltage(struct regulator_dev *rdev, goto err; hi = val & MC13892_SWITCHERS0_SWxHI; - if (value > 1375) + if (value > 1375000) hi = 1; - if (value < 1100) + if (value < 1100000) hi = 0; if (hi) { |