]> git.ipfire.org Git - thirdparty/linux.git/commit
hwmon: Use non-OF thermal cooling device registration API
authorDaniel Lezcano <daniel.lezcano@oss.qualcomm.com>
Tue, 26 May 2026 14:08:04 +0000 (16:08 +0200)
committerDaniel Lezcano <daniel.lezcano@kernel.org>
Wed, 3 Jun 2026 07:12:45 +0000 (09:12 +0200)
commit61e7550fe8b26c2b132eff2ced57c6b2dd93ca7f
tree02a3f7f02d5b1af426af94912b67a0f7d3d1e109
parent876bb45f36939307c1e376243d862ad1b1a5f0cd
hwmon: Use non-OF thermal cooling device registration API

Some HWMON drivers register cooling devices using the OF helper
devm_thermal_of_cooling_device_register() with a NULL device node.

With the introduction of a dedicated non-OF registration API,
switch these users to devm_thermal_cooling_device_register()
to make the intent explicit and avoid relying on OF-specific helpers.

This is a pure refactoring with no functional change.

Signed-off-by: Daniel Lezcano <daniel.lezcano@oss.qualcomm.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@kernel.org>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Rafael J. Wysocki (Intel) <rafael@kernel.org>
Link: https://patch.msgid.link/20260526140802.1059293-15-daniel.lezcano@oss.qualcomm.com
drivers/hwmon/cros_ec_hwmon.c
drivers/hwmon/dell-smm-hwmon.c
drivers/hwmon/mlxreg-fan.c