Lorenzo Pieralisi 4f0450af53 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>
2017-08-04 00:14:46 +02:00
..
2017-07-05 17:09:27 -07:00
2017-07-12 10:00:04 -07:00
2016-04-27 23:42:57 +02:00
2017-05-10 09:35:42 -07:00
2016-01-04 22:10:30 +01:00
2017-07-04 14:16:49 -07:00
2016-10-10 02:20:43 +02:00
2017-05-09 15:15:47 -07:00
2017-05-03 12:16:25 -07:00