ACPI: bus: Introduce acpi_dev_for_each_child_reverse()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 13 Jun 2022 18:26:47 +0000 (20:26 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 20 Jun 2022 18:33:15 +0000 (20:33 +0200)
commitff32e59947c87b01dc25a8b5763d609c1a8f56eb
tree863d4075428b441b3cae9b2250a5482303f1af97
parent0ea3ef240c49113cefbaab1f3dbf5b7f46837fc0
ACPI: bus: Introduce acpi_dev_for_each_child_reverse()

Make it possible to walk the children of an ACPI device in the revese
order by defining acpi_dev_for_each_child_reverse() in analogy with
acpi_dev_for_each_child().

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/acpi/bus.c
include/acpi/acpi_bus.h