diff options
| author | André Draszik <andre.draszik@linaro.org> | 2026-03-02 13:32:06 +0000 |
|---|---|---|
| committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2026-03-03 23:58:07 +0100 |
| commit | 0c5a6dc85d739c41f5240fd149f42f26f0665aab (patch) | |
| tree | d6d31a78804cc1d8fa9202c7d08eb0a48684ac38 /tools/perf/scripts/python | |
| parent | 9a44949da669708f19d29141e65b3ac774d08f5a (diff) | |
power: supply: max17042: time to empty is meaningless when charging
When charging, the fuel gauge reports U16_MAX as time to empty.
Ignoring this special case (as this driver currently does), causes the
remaining time to be reported as ~102hours, which is incorrect.
Update the code to not return anything in this case.
Reviewed-by: Peter Griffin <peter.griffin@linaro.org>
Signed-off-by: André Draszik <andre.draszik@linaro.org>
Link: https://patch.msgid.link/20260302-max77759-fg-v3-7-3c5f01dbda23@linaro.org
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
