diff options
| author | Linus Walleij <[email protected]> | 2021-11-20 16:53:25 +0100 |
|---|---|---|
| committer | Sebastian Reichel <[email protected]> | 2021-11-22 17:16:26 +0100 |
| commit | 67acb291f3b6636cc52a3f859c91c05688992a15 (patch) | |
| tree | 59fa3a78c83cb0715c3e5418619af571fd7f256a /scripts/gdb/linux/dmesg.py | |
| parent | bc6e0287140216011b99392fdf687a92707675ad (diff) | |
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 <[email protected]>
Signed-off-by: Sebastian Reichel <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/dmesg.py')
0 files changed, 0 insertions, 0 deletions