Messages in this thread | | | From | Frank Wunderlich <> | Subject | Aw: Re: [PATCH] thermal: mediatek: add sensors-support | Date | Tue, 20 Apr 2021 16:59:30 +0200 |
| |
Hi,
> Gesendet: Dienstag, 20. April 2021 um 14:07 Uhr > Von: "Daniel Lezcano" <daniel.lezcano@linaro.org>
> No #ifdef in C file. ...
> devm_thermal_add_hwmon_sysfs() ?
based on your comments this should be enough/right?
#if IS_ENABLED(CONFIG_THERMAL_HWMON) tzdev->tzp->no_hwmon = false; ret = devm_thermal_add_hwmon_sysfs(tzdev); if (ret) dev_err(&pdev->dev, "error in thermal_add_hwmon_sysfs"); #endif
if yes i send out v2, at least it works on my device
regards Frank
| |