OSDN Git Service

power: supply: ab8500_fg: Use VBAT-to-Ri if possible
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 25 Feb 2022 23:27:59 +0000 (00:27 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Mon, 28 Feb 2022 10:34:32 +0000 (11:34 +0100)
commitbc5d4a24eca3bc0c6ab5dd81026265a20cabcd48
tree8aa54a4f85a638d419d19a2130e2d20520487037
parente9e7d165b4b0413c5b7db74515e4981a226b78a0
power: supply: ab8500_fg: Use VBAT-to-Ri if possible

Augment the AB8500 fuel gauge to use the VBAT-to-Ri method of
estimating the internal resistance if possible. Else fall back
to using the temperature-to-Ri or just the default Ri.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/ab8500_fg.c