hwmon: emc2305: Use devm_thermal_of_cooling_device_register
authorFlorin Leotescu <florin.leotescu@nxp.com>
Fri, 21 Mar 2025 14:33:08 +0000 (16:33 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Sat, 22 Mar 2025 00:07:38 +0000 (17:07 -0700)
commit2115cbeec8a3ccc69e3b7ecdf97b4472b0829cfc
treec4677d83591e6f543ee77c32843006e71a54313f
parent882bd6de1a5b4488dc0747d74420af34d419fd99
hwmon: emc2305: Use devm_thermal_of_cooling_device_register

Prepare the emc2305 driver to use configuration from Device Tree nodes.
Switch to devm_thermal_of_cooling_device_register to simplify the
cleanup procedure, allowing the removal of emc2305_unset_tz and
emc2305_remove, which are no longer needed.

Signed-off-by: Florin Leotescu <florin.leotescu@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20250321143308.4008623-4-florin.leotescu@oss.nxp.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/emc2305.c