diff options
| author | Vincent Jardin <vjardin@free.fr> | 2026-07-13 23:07:54 +0200 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2026-08-10 08:59:41 -0700 |
| commit | a3b61ba2558ea8fe936193c2c2c925ad8c4a1d36 (patch) | |
| tree | b0e730125a51d855bd11395f3b515ba1ab077256 | |
| parent | 6b80b95e71afdd991fac9de0b4009fff98077ef0 (diff) | |
hwmon: (tmp401) register with thermal subsystem
tmp401 is missing HWMON_C_REGISTER_TZ. So a devicetree thermal
zone referencing a such sensor ('thermal-sensors = <&tmp411 N>')
fails to register it. Then its cooling-maps is not set, which means
that the fans are not managed.
Same as lm90 or jc42, set HWMON_C_REGISTER_TZ.
Boards without the property into the DT keep the same behavior.
Signed-off-by: Vincent Jardin <vjardin@free.fr>
Link: https://lore.kernel.org/r/20260713-for-upstream-hwmon-tmp401-register-tz-v1-1-47315d8617bc@free.fr
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
| -rw-r--r-- | drivers/hwmon/tmp401.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/tmp401.c b/drivers/hwmon/tmp401.c index ca0ff525ea29..83aafe4bd3e7 100644 --- a/drivers/hwmon/tmp401.c +++ b/drivers/hwmon/tmp401.c @@ -695,7 +695,7 @@ static int tmp401_probe(struct i2c_client *client) info->type = hwmon_chip; info->config = data->chip_channel_config; - data->chip_channel_config[0] = HWMON_C_UPDATE_INTERVAL; + data->chip_channel_config[0] = HWMON_C_REGISTER_TZ | HWMON_C_UPDATE_INTERVAL; info = &data->temp_info; info->type = hwmon_temp; |
