diff options
| author | Thomas Weißschuh <linux@weissschuh.net> | 2026-06-30 22:57:51 +0200 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2026-08-10 08:59:40 -0700 |
| commit | de0181c95b961a9d65ed5923ec3f4011944a6ef6 (patch) | |
| tree | 6415745998b15cbfbe4e514bfd9199f4d866486f /scripts/Makefile.thinlto | |
| parent | ecc0eb5e95695ebfd7e51eecc65e80fff421cdcf (diff) | |
hwmon: (cros_ec) Implement custom kelvin to celsius conversions
The ChromeOS EC APIs use integers representing degrees kelvin for
temperatures. The default conversions from linux/units.h will then
always convert these integer degrees celsius with a 150 millidegree
offset. This is a bit confusing, as it also differs from other CrOS EC
tooling. Internally the EC uses a kelvin to celsius offset of a round
273, so the current conversion is also not entirely accurate.
Implement a custom conversion which preserves round values.
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20260630-cros_ec-hwmon-overflow-v1-1-3d2ecd3eb0f2@weissschuh.net
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
