ACPI: thermal: Move to dedicated function sysfs extra attr creation
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 19 Apr 2023 08:33:42 +0000 (10:33 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 27 Apr 2023 17:20:12 +0000 (19:20 +0200)
commita4b81715a58e0ddf10bc2df2185566b73b9ae616
treed3c9ef6da92fe3c8740277218426fd14cb7a2dd8
parent66d39e74bf490fb1ef90e13086b68d6df6e6ad06
ACPI: thermal: Move to dedicated function sysfs extra attr creation

The ACPI thermal driver creates extra sysfs attributes in its own
directory pointing to the thermal zone it is related to and add a
pointer to the sysfs ACPI thermal device from the thermal zone sysfs
entry.

This is very specific to this ACPI thermal driver, let's encapsulate
the related creation/deletion code to group it inside a function we
can identify later for removal if needed.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
[ rjw: Subject adjustment, removal of trailing white space ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/thermal.c