mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-22 14:52:34 +00:00
device property: Add support for fwnode endpoints
Similar to OF endpoints, endpoint type nodes can be also supported on ACPI. In order to make it possible for drivers to ignore the matter, add a type for fwnode_endpoint and a function to parse them. On ACPI, find the child node index instead of relying on the "endpoint" property. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:
parent
e44bb0cbdc
commit
2bd5452d46
3 changed files with 47 additions and 0 deletions
|
@ -27,4 +27,16 @@ struct fwnode_handle {
|
|||
struct fwnode_handle *secondary;
|
||||
};
|
||||
|
||||
/**
|
||||
* struct fwnode_endpoint - Fwnode graph endpoint
|
||||
* @port: Port number
|
||||
* @id: Endpoint id
|
||||
* @local_fwnode: reference to the related fwnode
|
||||
*/
|
||||
struct fwnode_endpoint {
|
||||
unsigned int port;
|
||||
unsigned int id;
|
||||
const struct fwnode_handle *local_fwnode;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue