diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2018-07-17 17:19:15 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-07-23 12:44:52 +0200 |
commit | 6561eb3d3a23c4d38ba428396b7a14e184804535 (patch) | |
tree | 9855bd9c934635ca971810428658b4a647453c24 /drivers/acpi | |
parent | 0ef7478639c5165a672f01b4024aacfffa951813 (diff) | |
download | linux-6561eb3d3a23c4d38ba428396b7a14e184804535.tar.bz2 |
ACPI: property: Allow direct graph endpoint references
By using device and further data node references, allow direct references
to endpoints. These are of form
Package() { \DEV, "portX", "endpointY" }
where X is the number of the port and Y is the number of the endpoint.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/property.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/property.c b/drivers/acpi/property.c index 19bdada64435..10af340eedd2 100644 --- a/drivers/acpi/property.c +++ b/drivers/acpi/property.c @@ -1122,9 +1122,9 @@ acpi_graph_get_remote_endpoint(const struct fwnode_handle *__fwnode) if (ret) return NULL; - /* Ensure this is a device node. */ + /* Direct endpoint reference? */ if (!is_acpi_device_node(args.fwnode)) - return NULL; + return args.nargs ? NULL : args.fwnode; /* * Always require two arguments with the reference: port and |