Skip to content

Commit 0fb6c64

Browse files
committed
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
1 parent 311526b commit 0fb6c64

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/thermal/st/stm_thermal.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,6 @@ static int stm_thermal_probe(struct platform_device *pdev)
558558
* Thermal_zone doesn't enable hwmon as default,
559559
* enable it here
560560
*/
561-
sensor->th_dev->tzp->no_hwmon = false;
562561
ret = thermal_add_hwmon_sysfs(sensor->th_dev);
563562
if (ret)
564563
goto err_tz;

0 commit comments

Comments
 (0)