Name

of_graph_get_endpoint_by_regs — get endpoint node of specific identifiers

Synopsis

struct device_node * of_graph_get_endpoint_by_regs (const struct device_node * parent,
 int port_reg,
 int reg);
 

Arguments

parent

Pointer to parent node

port_reg

Identifier (value of reg property) of the parent port node

reg

Identifier (value of reg property) of the endpoint node

Description

Find an 'endpoint' node pointer which is identified by reg and is the child of a port node identified by port_reg. reg and port_reg are ignored when they are -1.

See of_graph_get_next_endpoint for more information about the expected form of the parent node and the parent port 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.

See also

of_graph_get_port_by_id

Return

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