[PATCH v4 06/10] thermal/of: Rename the devm_thermal_of_cooling_device_register() function
Lukasz Luba
lukasz.luba at arm.com
Fri May 29 08:17:33 PDT 2026
On 5/26/26 15:08, Daniel Lezcano wrote:
> To clarify that the function operates on child nodes, rename:
>
> devm_thermal_of_cooling_device_register()
> |
> v
> devm_thermal_of_child_cooling_device_register()
>
> Used the command:
>
> find . -type f -name '*.[ch]' -exec \
> sed -i 's/devm_thermal_of_cooling_device_register/\
> devm_thermal_of_child_cooling_device_register/g' {} \;
>
> Did not used clang-format-diff because it does not indent correctly
> and checkpatch complained. Manually reindented to make checkpatch
> happy
>
> This prepares for upcoming support of cooling devices identified by
> an ID rather than device tree child nodes.
>
> No functional change.
>
> Signed-off-by: Daniel Lezcano <daniel.lezcano at oss.qualcomm.com>
> ---
> drivers/hwmon/amc6821.c | 2 +-
> drivers/hwmon/aspeed-pwm-tacho.c | 5 +++--
> drivers/hwmon/emc2305.c | 6 +++---
> drivers/hwmon/gpio-fan.c | 6 ++++--
> drivers/hwmon/max6650.c | 6 +++---
> drivers/hwmon/npcm750-pwm-fan.c | 6 ++++--
> drivers/hwmon/pwm-fan.c | 5 +++--
> drivers/hwmon/qnap-mcu-hwmon.c | 6 +++---
> drivers/hwmon/tc654.c | 5 +++--
> drivers/memory/tegra/tegra210-emc-core.c | 4 ++--
> drivers/soc/qcom/qcom_aoss.c | 2 +-
> drivers/thermal/khadas_mcu_fan.c | 7 ++++---
> drivers/thermal/tegra/soctherm.c | 6 +++---
> drivers/thermal/thermal_of.c | 15 +++++++++------
> include/linux/thermal.h | 16 ++++++++--------
> 15 files changed, 54 insertions(+), 43 deletions(-)
>
Reviewed-by: Lukasz Luba <lukasz.luba at arm.com>
More information about the linux-amlogic
mailing list