thermal/drivers/stm: Don't set no_hwmon to false
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 7 Mar 2023 13:37:29 +0000 (14:37 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Sat, 1 Apr 2023 18:51:45 +0000 (20:51 +0200)
commit0fb6c6493fa240048e6afa2b810b45007129a4a0
tree067d0cc6bcfd0c07ce243ddb090907476d4e4240
parent311526b7e38fb35ab6dcdec290babda3d2b4f8d3
thermal/drivers/stm: Don't set no_hwmon to false

The thermal->tzp->no_hwmon parameter is only used when calling
thermal_zone_device_register().

Setting it to 'false' before calling thermal_add_hwmon_sysfs() has no
effect.

Remove the call and again prevent the drivers to access the thermal
internals.

Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Cc: Alexandre Torgue <alexandre.torgue@foss.st.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20230307133735.90772-6-daniel.lezcano@linaro.org
drivers/thermal/st/stm_thermal.c