]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit23f960d90324d8acfe762b0cbdbe0f97faf5ee78
tree6043f56501932077ac49cc3a618941967b7d70a8
parentad756ba7488148c2ac19c557c052cd8f41f7f39a
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