of_graph_get_remote_port_parent — get remote port's ancestor device node
struct device_node * of_graph_get_remote_port_parent ( | const struct device_node * node) ; |
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.
Find the device node that contains the remote endpoint's ancestor “ports” node or “port” node if “ports” does not exist.
First find the endpoint node referred to by the phandle in the 'remote-endpoint' property contained in node. Then walk up the tree from the endpoint node to find an ancestor node. The ancestor node is three levels above the endpoint node if the endpoint node's grandparent is named 'ports' else two levels. The ancestor node is the “parent” node that is returned.