diff options
| author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-05-21 17:04:45 +0300 |
|---|---|---|
| committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2026-05-25 17:43:51 +0300 |
| commit | d3f13e75bf2c781b23b8fa8320e5ecb3a0b4df2e (patch) | |
| tree | 5d801f3cfa53a5be4ddd26c8039e26275883d164 /include | |
| parent | 3159c5fcdd3a5eae70b45cbdf453d408266f547d (diff) | |
| download | linux-d3f13e75bf2c781b23b8fa8320e5ecb3a0b4df2e.tar.xz | |
ACPI: thermal: Switch over to devres-based resource management
Switch over the ACPI thermal zone driver to devres-based resource
management by making the following changes:
* Turn acpi_thermal_zone_free() into a devm action added from
acpi_thermal_probe() after allocating the struct acpi_thermal object.
* Rename acpi_thermal_unregister_thermal_zone() to
acpi_thermal_zone_unregister(), add acpi_thermal_pm_queue flushing to
it, and turn it into a devm action added by acpi_thermal_probe()
after calling acpi_thermal_register_thermal_zone().
* Use the newly introduced devm_acpi_install_notify_handler() for
installing an ACPI notify handler.
* Drop acpi_thermal_remove() that is not necessary any more.
No intentional functional impact.
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/3698719.iIbC2pHGDl@rafael.j.wysocki
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
