Name

of_find_node_by_type — find a node by its device_type property

Synopsis

struct device_node * of_find_node_by_type (struct device_node * from,
 const char * type);
 

Arguments

from

Pointer to node to start searching from or NULL for the entire device tree.

type

The type string to match against

Description

Search the device tree for a node 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.

Return

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