summaryrefslogtreecommitdiff
path: root/include/linux/stacktrace.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-09-11 15:04:11 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-09-12 20:11:58 +0200
commit8a2622ae68984913ba0a778e64722f192721109b (patch)
tree89c9e44fa006fdcacf431d36d09dc2e6f73f1801 /include/linux/stacktrace.h
parentd7ab07938c46f877448fa61d38ec87ba8643dff1 (diff)
ACPI: fan: Use thermal_cooling_device_create()
Instead of using thermal_cooling_device_register() for registering a cooling device in the ACPI fan driver, make it use thermal_cooling_device_create() and pass a pointer to the platform device representing the given fan to that function as the cooling device's parent. That will cause the cooling device's sysfs directory to be created under the parent's sysfs directory (among other things). Since creating a class device under a parent causes a "device" symbolic link from the sysfs directory of the class device to the sysfs directory of the parent to appear automatically, remove the code creating that symbolic link manually. Moreover, since the cooling device is now located in sysfs under its parent and it can be easily identified as a cooling device, there is no need to create a "thermal_cooling" symbolic link from its parent to it. Accordingly, also remove the code creating that symbolic link. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Armin Wolf <W_Armin@gmx.de> Link: https://patch.msgid.link/3969045.kQq0lBPeGt@rafael.j.wysocki
Diffstat (limited to 'include/linux/stacktrace.h')
0 files changed, 0 insertions, 0 deletions