ACPI: resource: Add helper function acpi_dev_get_memory_resources()
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Tue, 16 Aug 2022 10:16:26 +0000 (13:16 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:39:37 +0000 (09:39 +0100)
commit2dc1dba1d8d36b802cadc7e52acf0347b6fdb1ce
tree851a50a3cb7db60fe523171d4740b5ce1ab78990
parent950c6df6ec6ecd97b02e032b3337482f43566e3c
ACPI: resource: Add helper function acpi_dev_get_memory_resources()

[ Upstream commit 6bb057bfd9d509755349cd2a6ca5e5e6e6071304 ]

Wrapper function that finds all memory type resources by
using acpi_dev_get_resources(). It removes the need for the
drivers to check the resource data type separately.

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Stable-dep-of: c3194949ae8f ("usb: typec: intel_pmc_mux: Don't leak the ACPI device reference count")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/acpi/resource.c
include/linux/acpi.h