Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c39fd549 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "power: smb1398: Replace use of do_div() with plain division"

parents b0fec7e6 dd58d3d2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;