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

Commit 281d6b54 authored by Devesh Jhunjhunwala's avatar Devesh Jhunjhunwala
Browse files

power: qpnp-smbcharger: fix bug in find_closest_in_array



This method uses a variable to track the current closest value's
index. The implementation was checking the distance between the
value and this index instead of the value at that index. Fix
this bug.

CRs-Fixed: 923805
Change-Id: Iac3cc125c4c5fabbe027ec38890d5c47e199187e
Signed-off-by: default avatarDevesh Jhunjhunwala <deveshj@codeaurora.org>
parent bb29ea15
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