]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
power: supply: max17042: report time to full (max17055 & max77759)
authorAndré Draszik <andre.draszik@linaro.org>
Mon, 2 Mar 2026 13:32:10 +0000 (13:32 +0000)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 3 Mar 2026 22:58:07 +0000 (23:58 +0100)
commitc10b68e331c51aed8a615af701946dd85b2aca1c
tree9a976ddb58f8ac985ab086b98fe63bbd358ce6a3
parent83a86e27c34d06ec2dc117fb293e80f78402df49
power: supply: max17042: report time to full (max17055 & max77759)

Report the remaining time to full as calculated by the firmware for
devices that implement this.
Similar to time to empty, the reported value is only meaningful when
charging, i.e. if it is != U16_MAX.

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-11-3c5f01dbda23@linaro.org
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/max17042_battery.c