From 3e6f039fb56a35cdff177cccec757f165e8ed213 Mon Sep 17 00:00:00 2001 From: Jacob Chen Date: Mon, 28 Aug 2017 14:49:26 +0800 Subject: [PATCH] ACPI / property: Add dummy function for remote endpoints complete version: 79389a83bc3888a900191e3990cda5c76f2ca1ec Change-Id: Ib6147e7ba2b426bc16253c27cdf8170a546f4ac5 Signed-off-by: Jacob Chen --- include/linux/acpi.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/include/linux/acpi.h b/include/linux/acpi.h index c8d922276a8c..b2ecc72c049a 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -814,6 +814,13 @@ struct fwnode_handle *acpi_get_next_subnode(struct fwnode_handle *fwnode, struct fwnode_handle *child); struct fwnode_handle *acpi_node_get_parent(struct fwnode_handle *fwnode); +struct fwnode_handle *acpi_graph_get_next_endpoint(struct fwnode_handle *fwnode, + struct fwnode_handle *prev); +int acpi_graph_get_remote_endpoint(struct fwnode_handle *fwnode, + struct fwnode_handle **remote, + struct fwnode_handle **port, + struct fwnode_handle **endpoint); + struct acpi_probe_entry; typedef bool (*acpi_probe_entry_validate_subtbl)(struct acpi_subtable_header *, struct acpi_probe_entry *); @@ -933,6 +940,22 @@ acpi_node_get_parent(struct fwnode_handle *fwnode) return NULL; } +static inline struct fwnode_handle * +acpi_graph_get_next_endpoint(struct fwnode_handle *fwnode, + struct fwnode_handle *prev) +{ + return ERR_PTR(-ENXIO); +} + +static inline int +acpi_graph_get_remote_endpoint(struct fwnode_handle *fwnode, + struct fwnode_handle **remote, + struct fwnode_handle **port, + struct fwnode_handle **endpoint) +{ + return -ENXIO; +} + #define ACPI_DECLARE_PROBE_ENTRY(table, name, table_id, subtable, valid, data, fn) \ static const void * __acpi_table_##name[] \ __attribute__((unused)) \