power: supply: ab8500: Use library interpolation
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 13 Jul 2021 15:27:05 +0000 (17:27 +0200)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 16 Jul 2021 13:14:30 +0000 (15:14 +0200)
commitf820547446ed05edee2944ebe19ea6a3104434f4
tree3418764abfa635b28f6a9878ea850c67a7d1ad39
parente73f0f0ee7541171d89f2e2491130c7771ba58d3
power: supply: ab8500: Use library interpolation

The kernel already has a static inline for linear interpolation
so use that instead of rolling our own.

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