Re: [PATCH v1 06/16] ACPI: container: Use acpi_dev_for_each_child()

Andy Shevchenko
2022-06-09T15:29:16Z

On Thu, Jun 09, 2022 at 03:58:24PM +0200, Rafael J. Wysocki wrote:
> From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
>
> Instead of walking the list of children of an ACPI device directly,
> use acpi_dev_for_each_child() to carry out an action for all of
> the given ACPI device's children.

...

> + return acpi_dev_for_each_child(ACPI_COMPANION(&cdev->dev),
> + check_offline, NULL);

I would find this on one line better and not missing important details after
80th character.

--
With Best Regards,
Andy Shevchenko