diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2021-11-20 16:53:25 +0100 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2021-11-22 17:16:26 +0100 |
commit | 67acb291f3b6636cc52a3f859c91c05688992a15 (patch) | |
tree | 59fa3a78c83cb0715c3e5418619af571fd7f256a /drivers/rtc/rtc-mc13xxx.c | |
parent | bc6e0287140216011b99392fdf687a92707675ad (diff) | |
download | linux-67acb291f3b6636cc52a3f859c91c05688992a15.tar.gz |
power: supply: ab8500: Standardize temp res lookup
The lookup from battery temperature to internal resistance was
using its own format. Rewrite this to use the table inside
struct power_supply_battery_info:s resist_table.
The supplied resistance table has to be rewritten to express
the resistance in percent of the factory resistance as a
side effect.
We can then rely on the library function
power_supply_temp2resist_simple() to interpolate the internal
resistance percent from the temperature.
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/rtc/rtc-mc13xxx.c')
0 files changed, 0 insertions, 0 deletions