]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
regulator: Return microamps in wm8350_isink_get_current
authorAxel Lin <axel.lin@gmail.com>
Tue, 27 Mar 2012 07:21:45 +0000 (15:21 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 28 Mar 2012 11:44:13 +0000 (12:44 +0100)
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>
drivers/regulator/wm8350-regulator.c

index f29803cfd0cb3652ba5294cd69e39d342142910f..c5f3b4090d87412ea788afcc8df246e1c3b7e4d8 100644 (file)
@@ -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 */