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

Skip to content
Commit 4e0bb670 authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

power: qpnp-fg-gen3: Fix incorrect calculations



'Commit 6364691d
("power: qpnp-fg-gen3: Fix fuel-gen3 compilation issues")'
tried fixing 32 bit compilation issues by replacing do_div() with
div64_s64. However, it broke the calculations done previously by
not storing the quotient back. Fix it.

Also, since these calculations are made on unsigned integers,
replace div64_s64() with div64_u64().

CRs-Fixed: 2235300
Change-Id: I257d8b96eeb7cec35540359b02160996ef99d1a7
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent c287f849
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment