mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 14:33:24 -04:00
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>
This commit is contained in:
committed by
Guenter Roeck
parent
6b80b95e71
commit
a3b61ba255
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user