power: supply: ab8500_fg: Account for line impedance
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 1 Mar 2022 12:42:54 +0000 (13:42 +0100)
committerSebastian Reichel <sre@kernel.org>
Fri, 4 Mar 2022 21:20:32 +0000 (22:20 +0100)
commit1ae4a91c923220b96c81e4a116595f4060f65c7f
treea1a45f421e7cb13020324e2956440ebb27069b41
parent8dc355748a7cb4b374d1296bdd68f66c18aced9e
power: supply: ab8500_fg: Account for line impedance

We add the line impedance to the inner resistance determined
from the battery voltage or other means to improve the
capacity estimations.

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