提交 6561eb3d 编写于 作者: S Sakari Ailus 提交者: Rafael J. Wysocki

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: NSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
上级 0ef74786
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册