of_find_compatible_node — find a node based on type and compatible
struct device_node * of_find_compatible_node ( | struct device_node * from, |
const char * type, | |
const char * compatible) ; |
from
Pointer to node to start searching from or NULL for the entire device tree.
type
The type string to match “device_type” or NULL to ignore
compatible
The string to match to one of the tokens in the device “compatible” list.
Search the device tree for a node whose “compatible” property contains a match for compatible and whose “device-type” property contains a value matching type.
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.