summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-08-26 19:22:52 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2026-08-26 19:22:52 +0200
commitbbc981bd541e62760c4c0dbf326427a4751e3586 (patch)
treedc53fa025e0b7f2c5b031d486058b3991a17a56b /include
parent4c2cebc89db9852a0815d4c3cbdea4e102230e8c (diff)
parent87ee7d704f69f303c86b2dcf617e33764371fe7b (diff)
downloadlinux-bbc981bd541e62760c4c0dbf326427a4751e3586.tar.gz
linux-bbc981bd541e62760c4c0dbf326427a4751e3586.zip
Merge branch 'acpi-bus'
Merge changes related to primary "physical" device lookup for a given ACPI device object that include the introduction of a new lookup helper function and core ACPI device enumeration code updates putting that new function to use (Rafael Wysocki) * acpi-bus: ACPI: scan: Use acpi_bus_get_primary_device() ACPI: platform: Use acpi_bus_get_primary_device() ACPI: bus: Introduce acpi_bus_get_primary_device()
Diffstat (limited to 'include')
-rw-r--r--include/acpi/acpi_bus.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h
index 32cac3a6f362..eaf13f6ac2d3 100644
--- a/include/acpi/acpi_bus.h
+++ b/include/acpi/acpi_bus.h
@@ -650,6 +650,7 @@ int acpi_scan_add_handler(struct acpi_scan_handler *handler);
int acpi_bus_scan(acpi_handle handle);
void acpi_bus_trim(struct acpi_device *start);
acpi_status acpi_bus_get_ejd(acpi_handle handle, acpi_handle * ejd);
+struct device *acpi_bus_get_primary_device(struct acpi_device *adev);
int acpi_match_device_ids(struct acpi_device *device,
const struct acpi_device_id *ids);
void acpi_set_modalias(struct acpi_device *adev, const char *default_id,
@@ -952,6 +953,11 @@ int acpi_scan_add_dep(acpi_handle handle, struct acpi_handle_list *dep_devices);
u32 arch_acpi_add_auto_dep(acpi_handle handle);
#else /* CONFIG_ACPI */
+static inline struct device *acpi_bus_get_primary_device(struct acpi_device *adev)
+{
+ return NULL;
+}
+
static inline bool acpi_of_match_device(const struct acpi_device *adev,
const struct of_device_id *of_match_table,
const struct of_device_id **of_id)