From: Axel Lin Date: Tue, 27 Mar 2012 07:21:45 +0000 (+0800) Subject: regulator: Return microamps in wm8350_isink_get_current X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=fa5a97bb0c65cb8d0382b72a55e2b87e15268289;p=linux-beck.git 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 Signed-off-by: Mark Brown --- diff --git a/drivers/regulator/wm8350-regulator.c b/drivers/regulator/wm8350-regulator.c index f29803cfd0cb..c5f3b4090d87 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 */