Messages in this thread Patch in this message |  | | From | Luiz Angelo Daros de Luca <> | | Date | Wed, 05 Aug 2026 10:15:20 -0300 | | Subject | [hwmon-next PATCH v6 4/4] hwmon: (adt7470) Add thermal zone sensor support |
| |
Register the ADT7470 temperature channels as thermal zone sensors.
Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com> --- drivers/hwmon/adt7470.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/drivers/hwmon/adt7470.c b/drivers/hwmon/adt7470.c index eeec3db0da88..f652532f2f32 100644 --- a/drivers/hwmon/adt7470.c +++ b/drivers/hwmon/adt7470.c @@ -1396,6 +1396,8 @@ static const struct hwmon_ops adt7470_hwmon_ops = { }; static const struct hwmon_channel_info * const adt7470_info[] = { + HWMON_CHANNEL_INFO(chip, + HWMON_C_REGISTER_TZ), HWMON_CHANNEL_INFO(temp, HWMON_T_INPUT | HWMON_T_MIN | HWMON_T_MAX | HWMON_T_ALARM, HWMON_T_INPUT | HWMON_T_MIN | HWMON_T_MAX | HWMON_T_ALARM, -- 2.55.0
|  |