summaryrefslogtreecommitdiff
path: root/scripts/stackusage
diff options
context:
space:
mode:
authorSebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm>2026-04-06 23:57:50 +0300
committerSebastian Reichel <sebastian.reichel@collabora.com>2026-06-03 22:29:39 +0300
commit0a733cd247eb9bda928049d72ab7ae16b9bff353 (patch)
treec4b17e9b8633b158e1478a3739d12051bbbce683 /scripts/stackusage
parent63f2279aa1eca55c0f6403f488739f1ff54d8564 (diff)
downloadlinux-0a733cd247eb9bda928049d72ab7ae16b9bff353.tar.xz
power: supply: max17042_battery: Use Current register in get_status
It can take a while for AvgCurrent to adjust after (un)plugging the charger. Use the instantaneous value in order to not confuse the userspace. While at that, don't do unit conversion of the read value. The current code was prone to overflows and we only care about the sign anyway. Signed-off-by: Sebastian Krzyszkowiak <sebastian.krzyszkowiak@puri.sm> Link: https://patch.msgid.link/20260406205759.493288-3-vincent.cloutier@icloud.com Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions