ACPI: PM: Add acpi_device_fix_up_power_children() function
authorHans de Goede <hdegoede@redhat.com>
Sun, 12 Nov 2023 20:36:26 +0000 (21:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 3 Dec 2023 06:33:07 +0000 (07:33 +0100)
commit9b9b04eb713c461ae46c11c3b396fa436a491e9a
tree86781f86ba76199a0907e36af9ba5c8839715c61
parenta0bb55dbedbe7ab284990ba4d6a2f59a56c99a4f
ACPI: PM: Add acpi_device_fix_up_power_children() function

commit 37ba91a82e3b9de35f64348c62b5ec7d74e3a41c upstream.

In some cases it is necessary to fix-up the power-state of an ACPI
device's children without touching the ACPI device itself add
a new acpi_device_fix_up_power_children() function for this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Cc: 6.6+ <stable@vger.kernel.org> # 6.6+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/acpi/device_pm.c
include/acpi/acpi_bus.h