summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/wm8350-regulator.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2012-03-27 15:21:45 +0800
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-03-28 12:44:13 +0100
commitfa5a97bb0c65cb8d0382b72a55e2b87e15268289 (patch)
treee86a92cf95ad1b330d456e8a61f417df2fd8260b /drivers/regulator/wm8350-regulator.c
parent3a744038b3709cd467b693f3e146c6d5b8120a18 (diff)
downloadop-kernel-dev-fa5a97bb0c65cb8d0382b72a55e2b87e15268289.zip
op-kernel-dev-fa5a97bb0c65cb8d0382b72a55e2b87e15268289.tar.gz
regulator: Return microamps in wm8350_isink_get_current
The values in isink_cur array are microamps. The regulator core expects get_current_limit callback to return microamps. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/regulator/wm8350-regulator.c')
-rw-r--r--drivers/regulator/wm8350-regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/wm8350-regulator.c b/drivers/regulator/wm8350-regulator.c
index f29803c..c5f3b40 100644
--- a/drivers/regulator/wm8350-regulator.c
+++ b/drivers/regulator/wm8350-regulator.c
@@ -186,7 +186,7 @@ static int wm8350_isink_get_current(struct regulator_dev *rdev)
return 0;
}
- return DIV_ROUND_CLOSEST(isink_cur[val], 100);
+ return isink_cur[val];
}
/* turn on ISINK followed by DCDC */
OpenPOWER on IntegriCloud