]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3e6e49a4179d148d262ccf7013f977cfad3b1a31
treebbc4e41c7b064d2a6ee4166217aac6244cd666ae
parent1d034c54d9085a22a1924a5a9d057d2f9c0354f2
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