mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 16:46:15 -04:00
Merge "power: smb1398: Replace use of do_div() with plain division"
This commit is contained in:
commit
c39fd549d3
1 changed files with 1 additions and 1 deletions
|
|
@ -2284,7 +2284,7 @@ static int smb1398_pre_regulator_iout_vote_cb(struct votable *votable,
|
|||
return -EINVAL;
|
||||
|
||||
iout_ua = min(iout_ua, MAX_IOUT_UA);
|
||||
rc = smb1398_set_ichg_ma(chip, do_div(iout_ua, 1000));
|
||||
rc = smb1398_set_ichg_ma(chip, (iout_ua / 1000));
|
||||
if (rc < 0)
|
||||
return rc;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue