]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI: scan: Add function to fetch dependent of ACPI device
authorDaniel Scally <djrscally@gmail.com>
Thu, 3 Jun 2021 22:40:03 +0000 (23:40 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 7 Jun 2021 14:48:05 +0000 (16:48 +0200)
commitc51a2db5b0f3ed5ea5f9cea97c751944aef7afec
treee00bcf6b0796c06391c931e7452e1adaafa4a4df
parenta6a1f065d9c2678bbc9c1c64121950d4e95c8ddd
ACPI: scan: Add function to fetch dependent of ACPI device

In some ACPI tables we encounter, devices use the _DEP method to assert
a dependence on other ACPI devices as opposed to the OpRegions that the
specification intends.

We need to be able to find those devices "from" the dependee, so add
a callback and a wrapper to walk over the acpi_dep_list and return
the dependent ACPI device.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Daniel Scally <djrscally@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/scan.c
include/acpi/acpi_bus.h