Skip to content
Commit 9c19761a authored by Srinivas Kandagatla's avatar Srinivas Kandagatla Committed by Rob Herring
Browse files

dt: introduce of_get_child_by_name to get child node by name



This patch introduces of_get_child_by_name function to get a child node
by its name in a given parent node.

Without this patch each driver code has to iterate the parent and do
a string compare, However having of_get_child_by_name libary function would
avoid code duplication, errors and is more convenient.

Signed-off-by: default avatarSrinivas Kandagatla <srinivas.kandagatla@st.com>
Signed-off-by: default avatarRob Herring <rob.herring@calxeda.com>
parent ee67016f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment