of_graph_get_port_by_id — get pointer to the port node matching a given id
struct device_node * of_graph_get_port_by_id ( | struct device_node * parent, |
u32 id) ; |
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
.
A 'port' node pointer with refcount incremented, use
of_node_put
on it when done. NULL if node is not found.