summaryrefslogtreecommitdiff
path: root/include/linux/workqueue.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-05-05 14:47:01 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-05-13 22:04:00 +0300
commitcfb5dc0f60fbe95a10cb307cc6dae5c47f160abb (patch)
treeec032c3ea13db9633f7f69fea4928bb9a496201c /include/linux/workqueue.h
parentd6323469bcfbda91f0aa89b7b39ad45fe822ca5d (diff)
downloadlinux-cfb5dc0f60fbe95a10cb307cc6dae5c47f160abb.tar.xz
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>
Diffstat (limited to 'include/linux/workqueue.h')
0 files changed, 0 insertions, 0 deletions