summaryrefslogtreecommitdiff
path: root/drivers/acpi
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-06-13 20:30:19 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2022-06-21 14:34:52 +0200
commit0b1bd1e356643319809903034ffd2e6b5834271e (patch)
treeb2a4460b85fa7c2bff9c7235a9d007a9c3ade9ce /drivers/acpi
parenta976a2ac7708c63257d42707c8423047136797a0 (diff)
platform/x86/thinkpad_acpi: Use acpi_dev_for_each_child()
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 used in questionable ways in some places (in particular, locking is needed for walking the list pointed to it safely, but it is often missing). Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/acpi')
0 files changed, 0 insertions, 0 deletions