power: bq25890: add POWER_SUPPLY_PROP_TEMP
authorAngus Ainslie <angus@akkea.ca>
Thu, 18 Nov 2021 16:18:45 +0000 (08:18 -0800)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Thu, 2 Dec 2021 17:27:06 +0000 (18:27 +0100)
commit9652c02428f3992129b73321fee32fe60b77c90f
treebbc4e41c7b064d2a6ee4166217aac6244cd666ae
parent0838a3bfcd1b0c8d2ce38afcc94b81920486dabd
power: bq25890: add POWER_SUPPLY_PROP_TEMP

Add the POWER_SUPPLY_PROP_TEMP and a NTC 10K percent VREGN to degrees LUT.

Make sure that a conversion is forced when the power supply is offline so
the temperature is valid.

Signed-off-by: Angus Ainslie <angus@akkea.ca>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/bq25890_charger.c