hwmon: Introduce hwmon_device_register_for_thermal
authorGuenter Roeck <linux@roeck-us.net>
Wed, 11 May 2022 13:29:59 +0000 (06:29 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 22 May 2022 18:32:31 +0000 (11:32 -0700)
commite5d21072054fbadf41cd56062a3a14e447e8c22b
tree80415a16cb97f766a8e3529ad417ab18c88b2ef8
parent59e746ca86ff4f73183f6ff0e6b046705b00e081
hwmon: Introduce hwmon_device_register_for_thermal

The thermal subsystem registers a hwmon driver without providing
chip or sysfs group information. This is for legacy reasons and
would be difficult to change. At the same time, we want to enforce
that chip information is provided when registering a hwmon device
using hwmon_device_register_with_info(). To enable this, introduce
a special API for use only by the thermal subsystem.

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