diff options
author | Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> | 2017-08-03 13:32:36 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-08-04 00:14:46 +0200 |
commit | 4f0450af530e62b0217522cab4803b5a65dccc46 (patch) | |
tree | a30fdc5fecd647598f78ac0021bd41ae0f31770f /drivers/acpi/scan.c | |
parent | 0d624f553c7e1523c196853d51d2e31ab469ef04 (diff) | |
download | linux-4f0450af530e62b0217522cab4803b5a65dccc46.tar.bz2 |
ACPI: Make acpi_dev_get_resources() method agnostic
The function acpi_dev_get_resources() is completely generic and
can be used to parse resource objects that are not necessarily
coming from the _CRS method but also from other objects eg _DMA
that have the same _CRS resource format.
Create an acpi_dev_get_resources() helper, internal to the ACPI
resources parsing compilation unit, __acpi_dev_get_resources(),
that takes a const char* parameter to detect which ACPI method should be
called to retrieve the resources list and make acpi_dev_get_resources()
call it with a method name _CRS leaving the API behaviour unchanged.
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tested-by: Nate Watterson <nwatters@codeaurora.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi/scan.c')
0 files changed, 0 insertions, 0 deletions