of_find_node_by_name — find a node by its “name” property
struct device_node * of_find_node_by_name ( | struct device_node * from, |
const char * name) ; |
from
Pointer to node to start searching from or NULL for the entire device tree.
name
The name string to match against
Search the device tree for a node whose “name” property contains a value
matching name
.
from
will not be searched, the search will begin with the next node in
search order. Typical use is to pass what the previous call returned.
The order of the device tree traversal is kernel version specific.
of_node_put
will be called on from
.
A node pointer with refcount incremented, use
of_node_put
on it when done. NULL if node is not found.