Files
linux-stable-mirror/include/linux
Rafael J. Wysocki cfb5dc0f60 thermal: hwmon: Use extra_groups for adding temperature attributes
Instead of passing NULL as the last argument to __hwmon_device_register()
in hwmon_device_register_for_thermal() and then adding each temperature
sysfs attribute to the hwmon device via device_create_file(), redefine
hwmon_device_register_for_thermal() to take an extra_groups argument
that will be passed to __hwmon_device_register(), define an attribute
group with a proper .is_visible() callback for the temperature
attributes and a related attribute groups pointer, and pass the latter
to hwmon_device_register_for_thermal().

This causes the code to be way more straightforward and closer to
what the other users of the hwmon subsystem do.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/8704209.T7Z3S40VBb@rafael.j.wysocki
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2026-05-13 21:04:00 +02:00
..
2026-04-07 08:22:24 -06:00
2026-04-22 12:58:57 -07:00
2026-04-04 08:10:37 -06:00
2026-04-16 07:03:40 -07:00
2026-04-07 17:38:07 +02:00
2026-04-05 13:53:28 -07:00
2026-04-06 11:39:54 +02:00
2026-04-05 13:53:00 -07:00
2026-04-05 13:53:10 -07:00
2026-04-20 11:35:17 -07:00
2026-04-13 08:39:51 -07:00
2026-04-06 09:06:39 +02:00