summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2026-06-30 22:57:51 +0200
committerGuenter Roeck <linux@roeck-us.net>2026-08-10 08:59:40 -0700
commitde0181c95b961a9d65ed5923ec3f4011944a6ef6 (patch)
tree6415745998b15cbfbe4e514bfd9199f4d866486f /tools/lib/python
parentecc0eb5e95695ebfd7e51eecc65e80fff421cdcf (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 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions