diff options
author | 2021-11-20 16:53:25 +0100 | |
---|---|---|
committer | 2021-11-22 17:16:26 +0100 | |
commit | 67acb291f3b6636cc52a3f859c91c05688992a15 (patch) | |
tree | 59fa3a78c83cb0715c3e5418619af571fd7f256a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | power: supply: ab8500: Standardize CV voltage (diff) | |
download | linux-dev-67acb291f3b6636cc52a3f859c91c05688992a15.tar.xz linux-dev-67acb291f3b6636cc52a3f859c91c05688992a15.zip |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions