OSDN Git Service

ACPI: thermal: Do not attach private data to ACPI handles
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 8 Aug 2023 20:15:15 +0000 (22:15 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 9 Aug 2023 08:53:06 +0000 (10:53 +0200)
commit868a4715a88114e914144fe07a630cd7230ab848
tree0682342fb69c2198fb2b63248f1b45c4040d1c1a
parentdabc621a311007d78bfcf60f8125c5e8c33ded7b
ACPI: thermal: Do not attach private data to ACPI handles

The ACPI thermal driver uses acpi_bus_attach_private_data() to attach
the thermal zone object to the ACPI handle of the thermal zone and
acpi_bus_detach_private_data() to clean that up, but it never uses
acpi_bus_get_private_data() to retrieve that object.

Drop the unneded acpi_bus_attach_private_data() and
acpi_bus_detach_private_data() calls from the ACPI thermal driver and
clean up the related code.

No intentional functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Zhang Rui <rui.zhang@intel.com>
drivers/acpi/thermal.c