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

Skip to content
Commit 5c97d086 authored by Manaf Meethalavalappu Pallikunhi's avatar Manaf Meethalavalappu Pallikunhi
Browse files

power: bcl: Fix possible divide by zero case not accounted correctly



If targets operate without battery, rbat value from bms/battery module
is undefined. Some targets rbat value for this scenario goes very low
and bcl treat this value as zero which is leading to divide by zero
issue during IAVAIL calculation. Fix this possible divide by zero case
by checking rbat properly before IAVAIL calculation.

Change-Id: I50da088d123e37c670054afc77559a71cc0a9382
Signed-off-by: default avatarManaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
parent 2a0e8b68
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