diff options
| author | Linus Walleij <linusw@kernel.org> | 2026-09-16 08:49:27 +0200 |
|---|---|---|
| committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2026-10-04 21:25:48 +0200 |
| commit | 95990cda8e42dda4bd3f1475d578323981bd8579 (patch) | |
| tree | d65a6bad989dbdbb43b4ad8c361cc06036611749 /rust/kernel/alloc/allocator | |
| parent | 0bc9adf42698de962e845a9355b53bdbee5b5895 (diff) | |
power: supply: ab8500_btemp: Fix event temperature reporting
The event-aware path initializes its local temperature to zero and
compares that zero against the thermal thresholds. Consequently some
events report the measured temperature after it crosses the event
threshold, while others always report the threshold.
Start with the measured temperature, clamp it according to the active
event, and convert to tenths of a degree only once. This path is used
by AB8505 and later variants.
Fixes: 1f855824757e ("ab8500-btemp: AB8500 battery temperature driver")
Assisted-by: LLM
Signed-off-by: Linus Walleij <linusw@kernel.org>
Link: https://patch.msgid.link/20260916-ab8500-charging-v1-5-e986ed321cc6@kernel.org
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'rust/kernel/alloc/allocator')
0 files changed, 0 insertions, 0 deletions
