Re: [ibm-acpi-devel] [PATCH v1 12/16] platform/x86/thinkpad_acpi: Use acpi_dev_for_each_child()

2022-06-09 Thread Andy Shevchenko
On Thu, Jun 09, 2022 at 04:09:45PM +0200, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > 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. ... > + rc = acpi_dev_fo

Re: [ibm-acpi-devel] [PATCH v1 12/16] platform/x86/thinkpad_acpi: Use acpi_dev_for_each_child()

2022-06-09 Thread Rafael J. Wysocki
On Thu, Jun 9, 2022 at 5:49 PM Andy Shevchenko wrote: > > On Thu, Jun 09, 2022 at 04:09:45PM +0200, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > 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

[ibm-acpi-devel] [PATCH v1 12/16] platform/x86/thinkpad_acpi: Use acpi_dev_for_each_child()

2022-06-09 Thread Rafael J. Wysocki
From: Rafael J. Wysocki 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. This will help to eliminate the children list head from struct acpi_device as it is redundant and it is us