power: supply: ab8500: Integrate thermal zone
authorLinus Walleij <linus.walleij@linaro.org>
Sat, 29 Jan 2022 00:49:17 +0000 (01:49 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 11 Feb 2022 19:24:53 +0000 (20:24 +0100)
commit2b0e7ac0841b3906aeecf432567b02af683a596c
tree66e3f624cabb0dc8866709d846bf319417d5c38c
parentd662a7df36e1edc65eaf166ec1c8527ce9d088ea
power: supply: ab8500: Integrate thermal zone

Instead of providing our own homebrewn thermal measurement
code for an NTC and passing tables, we put the NTC thermistor
into the device tree, create a passive thermal zone, and poll
this thermal zone for the temperature.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/Kconfig
drivers/power/supply/ab8500-bm.h
drivers/power/supply/ab8500_bmdata.c
drivers/power/supply/ab8500_btemp.c