Skip to content

Commit

Permalink
ACPI: property: Allow direct graph endpoint references
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sakari Ailus authored and Rafael J. Wysocki committed Jul 23, 2018
1 parent 0ef7478 commit 6561eb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/acpi/property.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6561eb3

Please sign in to comment.