of_graph_get_endpoint_by_regs — get endpoint node of specific identifiers
struct device_node * of_graph_get_endpoint_by_regs ( | const struct device_node * parent, |
int port_reg, | |
int reg) ; |
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
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.
An 'endpoint' node pointer with refcount incremented, use
of_node_put
on it when done. NULL if node is not found.