diff options
author | Dmitry Osipenko <digetx@gmail.com> | 2020-08-14 00:34:02 +0300 |
---|---|---|
committer | Sebastian Reichel <sebastian.reichel@collabora.com> | 2020-08-25 19:24:37 +0200 |
commit | 00cda13e339c9f4956a6f036675df2ca5b5a552e (patch) | |
tree | 94f1e26daca5994c283badba4622ddda8b098557 /include/linux/power_supply.h | |
parent | c1f90759b3d536f9b1b047484d08dfd04af3c4b1 (diff) | |
download | linux-stable-00cda13e339c9f4956a6f036675df2ca5b5a552e.tar.gz linux-stable-00cda13e339c9f4956a6f036675df2ca5b5a552e.tar.bz2 linux-stable-00cda13e339c9f4956a6f036675df2ca5b5a552e.zip |
power: supply: Support battery temperature device-tree properties
The generic battery temperature properties are already supported by the
power-supply core. Let's support parsing of the common battery temperature
properties from a device-tree.
Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'include/linux/power_supply.h')
-rw-r--r-- | include/linux/power_supply.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/power_supply.h b/include/linux/power_supply.h index 97cc4b85bf61..d0684362a392 100644 --- a/include/linux/power_supply.h +++ b/include/linux/power_supply.h @@ -365,6 +365,12 @@ struct power_supply_battery_info { int constant_charge_voltage_max_uv; /* microVolts */ int factory_internal_resistance_uohm; /* microOhms */ int ocv_temp[POWER_SUPPLY_OCV_TEMP_MAX];/* celsius */ + int temp_ambient_alert_min; /* celsius */ + int temp_ambient_alert_max; /* celsius */ + int temp_alert_min; /* celsius */ + int temp_alert_max; /* celsius */ + int temp_min; /* celsius */ + int temp_max; /* celsius */ struct power_supply_battery_ocv_table *ocv_table[POWER_SUPPLY_OCV_TEMP_MAX]; int ocv_table_size[POWER_SUPPLY_OCV_TEMP_MAX]; struct power_supply_resistance_temp_table *resist_table; |