thermal/drivers/thermal_hwmon: Use hwmon_device_register_for_thermal()
authorGuenter Roeck <linux@roeck-us.net>
Wed, 11 May 2022 13:36:29 +0000 (06:36 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 22 May 2022 18:32:31 +0000 (11:32 -0700)
commit87743bcf08072b3e1952a0bf5524b2833e667b4c
tree6043f56501932077ac49cc3a618941967b7d70a8
parente5d21072054fbadf41cd56062a3a14e447e8c22b
thermal/drivers/thermal_hwmon: Use hwmon_device_register_for_thermal()

The thermal subsystem registers a hwmon device without providing chip
information or sysfs attribute groups. While undesirable, it would be
difficult to change. On the other side, it abuses the
hwmon_device_register_with_info API by not providing that information.
Use new API specifically created for the thermal subsystem instead to
let us enforce the 'chip' parameter for other callers of
hwmon_device_register_with_info().

Acked-by: Rafael J . Wysocki <rafael@kernel.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/thermal/thermal_hwmon.c