thermal: Convert .get_temp() return value to millicelsius
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sat, 6 Sep 2025 00:05:33 +0000 (02:05 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 8 Oct 2025 19:54:59 +0000 (13:54 -0600)
commit0ee639ff5af33342c6c2f4579e210d707abc9bc2
tree65f143d7299bf4eb4e9de0af7aa3035ea368f16c
parent79fe4655d67fb68e4172e45e8983815e26a4cd05
thermal: Convert .get_temp() return value to millicelsius

Linux kernel .get_temp() callback reports values in millicelsius,
U-Boot currently reports them in celsius. Align the two and report
in millicelsius. Update drivers accordingly. Update callsites that
use thermal_get_temp() as well.

The 'temperature' command now reports temperature in millicelsius
as well, with additional accuracy. This changes command line ABI
slightly.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
Reviewed-by: David Zang <davidzangcs@gmail.com>
[trini: Update test/cmd/temperature.c]
Signed-off-by: Tom Rini <trini@konsulko.com>
14 files changed:
arch/arm/mach-imx/cpu.c
arch/arm/mach-imx/imx8ulp/soc.c
cmd/temperature.c
drivers/cpu/imx8_cpu.c
drivers/mmc/omap_hsmmc.c
drivers/thermal/imx_scu_thermal.c
drivers/thermal/imx_thermal.c
drivers/thermal/imx_tmu.c
drivers/thermal/rcar_gen3_thermal.c
drivers/thermal/thermal_sandbox.c
drivers/thermal/ti-bandgap.c
drivers/thermal/ti-lm74.c
include/thermal.h
test/cmd/temperature.c