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

Skip to content
Commit 6314dfd6 authored by Jie Cheng's avatar Jie Cheng
Browse files

power: vm_bms: use DIV_ROUND_CLOSEST for soc and acc calculation



The kernel does not provide the round off feature for normal div
function. The DIV_ROUND_CLOSEST macro should be used in the soc and
acc calculation for rounding off the data.

Change-Id: I72d5b3ed5f90859b01909677f66c2abb65d4c9ec
Signed-off-by: default avatarJie Cheng <rockiec@codeaurora.org>
parent d2d9cb96
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