Name

of_graph_get_next_endpoint — get next endpoint node

Synopsis

struct device_node * of_graph_get_next_endpoint (const struct device_node * parent,
 struct device_node * prev);
 

Arguments

parent

Pointer to parent node

prev

Pointer to previous endpoint node, or NULL to get first

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 prev is NULL then the port node is {parent}/ports/port if that exists else {parent}/port if that exists. If prev is not NULL then the port node is the parent of prev.

If prev is NULL then the next endpoint node is the first child of the port node.

If prev is not NULL then the next endpoint node is the next child of the port node, following prev. If there is not a next child in the current port node then the port node becomes the next sibling node of port, with the node name of port, and the next endpoint is the first child of the new port node.

of_node_put will be called on prev.

Return

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