Name

of_graph_get_port_by_id — get pointer to the port node matching a given id

Synopsis

struct device_node * of_graph_get_port_by_id (struct device_node * parent,
 u32 id);
 

Arguments

parent

Pointer to parent node

id

Id of the port to be found

Description

This function is used in association with common bindings for video receiver and transmitter interfaces. For more information see Documentation/devicetree/bindings/media/video-interfaces.txt.

If parent contains a node named 'ports' then that node is searched else parent is searched. Search for child node named 'port' that contains a 'reg' property whose value matches id.

Also see of_graph_get_endpoint_by_regs.

Return

A 'port' node pointer with refcount incremented, use of_node_put on it when done. NULL if node is not found.