summaryrefslogtreecommitdiff
path: root/include/linux/errqueue.h
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-09-11 15:03:34 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-09-12 20:11:58 +0200
commitd7ab07938c46f877448fa61d38ec87ba8643dff1 (patch)
tree1df7760b41d9813d73816d9f0cf52cec34adbff1 /include/linux/errqueue.h
parentbb03cfceb1f11047a0155fa7871b729a345c8de2 (diff)
ACPI: video: Use thermal_cooling_device_create()
Instead of using thermal_cooling_device_register() for registering a backlight cooling device in the ACPI video bus driver, make it use thermal_cooling_device_create() and pass a pointer to the LCD device to that function as the cooling class 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 the "device" symbolic link from the sysfs directory of the cooling device in question to the sysfs directory of the parent's ACPI companion device. That companion device is reachable through the "firmware_node" symbolic link in the parent's sysfs directory regardless. Moreover, since the cooling class 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's ACPI companion 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/23237491.EfDdHjke4D@rafael.j.wysocki
Diffstat (limited to 'include/linux/errqueue.h')
0 files changed, 0 insertions, 0 deletions