diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2016-11-30 14:47:13 -0600 |
---|---|---|
committer | Bjorn Helgaas <helgaas@kernel.org> | 2016-12-01 14:59:32 -0600 |
commit | 00710984eac523ffed4e92850511d7610cfe908b (patch) | |
tree | 65b78c486753503d73a6faa02d07f577667a7a41 /arch/arm64/kernel | |
parent | 1001354ca34179f3db924eb66672442a173147dc (diff) | |
download | talos-op-linux-00710984eac523ffed4e92850511d7610cfe908b.tar.gz talos-op-linux-00710984eac523ffed4e92850511d7610cfe908b.zip |
ACPI: Add acpi_resource_consumer() to find device that claims a resource
Add acpi_resource_consumer(). This takes a struct resource and searches
the ACPI namespace for a device whose current resource settings (_CRS)
includes the resource. It returns the device if it exists, or NULL if no
device uses the resource.
If more than one device uses the resource (this may happen in the case of
bridges), acpi_resource_consumer() returns the first one found by
acpi_get_devices() in its modified depth-first walk of the namespace.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'arch/arm64/kernel')
0 files changed, 0 insertions, 0 deletions