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

Skip to content
Commit 586ca749 authored by Luca Weiss's avatar Luca Weiss Committed by Bharath
Browse files

power: fg-alg: return -1 instead of -EINVAL on error

Align our code to the return value found in other versions of the patch
"power: qpnp-qg: Add TTF_VALID param for valid TTF/TTE reporting".

This stops the time_to_full_now attribute from returning -22 (-EINVAL)
when the battery is fully charged which VTS is not happy about.

Issue: FP3-A12#4
Issue: FP3-A11#355
Test: run vts -m VtsHalHealthV2_1TargetTest -t PerInstance/HealthHidlTest#getHealthInfo_2_1/0_default
Change-Id: Ib36d74a4cbed0c125217bd15c07de5eff2c42659
(cherry picked from commit 4f6dc740)
parent 7662f152
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