[PATCH] thermal: Convert .get_temp() return value to millicelsius

Tom Rini trini at konsulko.com
Sat Sep 6 20:06:10 CEST 2025


On Sat, Sep 06, 2025 at 02:05:33AM +0200, Marek Vasut wrote:

> 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 at mailbox.org>

While I don't like changing APIs/ABIs like this, I think it's worthwhile
to keep in sync with the kernel overall here, and visible output is
either the same (and calculated) or visibly changed too.

Reviewed-by: Tom Rini <trini at konsulko.com>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250906/f47a170b/attachment.sig>


More information about the U-Boot mailing list