Skip to content
Commit 87743bcf authored by Guenter Roeck's avatar Guenter Roeck
Browse files

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: default avatarRafael J . Wysocki <rafael@kernel.org>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent e5d21072
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment