ACPI: bus: Introduce acpi_dev_for_each_child()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 4 Apr 2022 15:21:50 +0000 (17:21 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 13 Apr 2022 15:26:22 +0000 (17:26 +0200)
commitcf6ba0750a22a54f5101986401271429995cc4a0
treef59aa70e2f420216afab3f07a113a0fa2e77c071
parentce522ba9ef7e2d9fb22a39eb3371c0c64e2a433e
ACPI: bus: Introduce acpi_dev_for_each_child()

Introduce a wrapper around device_for_each_child() to iterate over
the children of a given ACPI device object.

This function will be used in subsequent change sets.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/acpi/bus.c
include/acpi/acpi_bus.h