]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf69e78ea4706ae5802657b7e1a57b40f1dcbbba7
tree863d4075428b441b3cae9b2250a5482303f1af97
parentc66cdf0a5da2d193916b86da6b45dc363d76607f
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