aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCalvin Johnson <[email protected]>2021-06-11 13:53:56 +0300
committerDavid S. Miller <[email protected]>2021-06-11 13:08:53 -0700
commit7ec16433cf1e97cfc823e50e9ee4e2fd3abfc4ee (patch)
tree299d86d04da0895a3513fc3305df914bd2db6eea /include
parent8d2cb3ad31181f050af4d46d6854cf332d1207a9 (diff)
ACPI: utils: Introduce acpi_get_local_address()
Introduce a wrapper around the _ADR evaluation. Signed-off-by: Calvin Johnson <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: Ioana Ciornei <[email protected]> Acked-by: Rafael J. Wysocki <[email protected]> Acked-by: Grant Likely <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'include')
-rw-r--r--include/linux/acpi.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h
index c60745f657e9..6ace3a0f1415 100644
--- a/include/linux/acpi.h
+++ b/include/linux/acpi.h
@@ -710,6 +710,8 @@ static inline u64 acpi_arch_get_root_pointer(void)
}
#endif
+int acpi_get_local_address(acpi_handle handle, u32 *addr);
+
#else /* !CONFIG_ACPI */
#define acpi_disabled 1
@@ -965,6 +967,11 @@ static inline struct acpi_device *acpi_resource_consumer(struct resource *res)
return NULL;
}
+static inline int acpi_get_local_address(acpi_handle handle, u32 *addr)
+{
+ return -ENODEV;
+}
+
#endif /* !CONFIG_ACPI */
#ifdef CONFIG_ACPI_HOTPLUG_IOAPIC