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

Skip to content
Commit 1c73f21d authored by Xiaozhe Shi's avatar Xiaozhe Shi Committed by Stephen Boyd
Browse files

power: qpnp-bms: fix divide by zero bug in calibration



Sometimes the iadc may return zero for gain during a calibration
reading. This causes a divide-by-zero bug in the BMS driver.

Fix this by not adjusting for gain when gain is zero.

Change-Id: Ieadb9fc92576f99692158539e06cdf261f4f49b5
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent 098d330f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment