Skip to content

Commit

Permalink
regulator: Return microamps in wm8350_isink_get_current
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Axel Lin authored and Mark Brown committed Mar 28, 2012
1 parent 3a74403 commit fa5a97b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/regulator/wm8350-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit fa5a97b

Please sign in to comment.