forked from luck/tmp_suning_uos_patched
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>
This commit is contained in:
parent
3a744038b3
commit
fa5a97bb0c
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue
Block a user