summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSunil V L <sunilvl@ventanamicro.com>2024-08-12 03:59:16 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-08-27 16:48:35 +0300
commit76d749c58f4c6dd333cb8ea515373f7c8df96e78 (patch)
tree3ea5b46cc88602cc1b18e4fdac86476068620e74 /include
parentf7d7ccf92f2b9398781f791b4af1a74a9f65b5c3 (diff)
downloadlinux-76d749c58f4c6dd333cb8ea515373f7c8df96e78.tar.xz
ACPI: scan: Refactor dependency creation
Some architectures like RISC-V will use implicit dependencies like GSI map to create dependencies between interrupt controller and devices. To support doing that, the function which creates the dependency, is refactored bit and made public so that dependency can be added from outside of scan.c as well. Signed-off-by: Sunil V L <sunilvl@ventanamicro.com> Tested-by: Björn Töpel <bjorn@rivosinc.com> Link: https://patch.msgid.link/20240812005929.113499-5-sunilvl@ventanamicro.com Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include')
-rw-r--r--include/acpi/acpi_bus.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
index 8db5bd382915..d6a4dd58e36f 100644
--- a/include/acpi/acpi_bus.h
+++ b/include/acpi/acpi_bus.h
@@ -993,6 +993,7 @@ static inline void acpi_put_acpi_dev(struct acpi_device *adev)
int acpi_wait_for_acpi_ipmi(void);
+int acpi_scan_add_dep(acpi_handle handle, struct acpi_handle_list *dep_devices);
#else /* CONFIG_ACPI */
static inline int register_acpi_bus_type(void *bus) { return 0; }