[PATCH v1 0/2] Support temperature trips by HWMON core and LM90 driver

From: Dmitry Osipenko
Date: Sun Jun 20 2021 - 12:13:16 EST


Hi,

It's typical for embedded devices to use LM90-compatible sensor for
monitoring of CPU core and skin temperatures. The sensor is often
used by thermal zone that performs passive cooling and emergency
shutdown on overheat, hence it's more optimal to use interrupt for
a faster notification about temperature changes. Thermal framework
provides set_trips() callback for programming of temperature trips,
let's support it by HWMON.

Dmitry Osipenko (2):
hwmon: Support set_trips() of thermal device ops
hwmon: (lm90) Implement set_trips() callback

drivers/hwmon/hwmon.c | 12 ++++++++++++
drivers/hwmon/lm90.c | 30 ++++++++++++++++++++++++++++++
include/linux/hwmon.h | 9 +++++++++
3 files changed, 51 insertions(+)

--
2.30.2