Skip to contentSkip to conversation

Add fdt_find_node_by_type() and fdt_find_compatible_node() to LIBFDT

PATCH New Jerry Van Baren 1 participant 1 message May 22, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 Add fdt_find_node_by_type() and fdt_find_compatible_node() to LIBFDT

---

Previously published by WolfgangG, added my ack.

 include/libfdt.h |    6 ++
 libfdt/fdt_ro.c  |  161 ++++++++++++++++++++++++++++++++++++++++++++++++------
 2 files changed, 149 insertions(+), 18 deletions(-)
include/libfdt.h +6 -0
index e080028..340e89d 100644
@@ -78,6 +78,12 @@ int fdt_subnode_offset_namelen(const void *fdt, int parentoffset,
 int fdt_subnode_offset(const void *fdt, int parentoffset, const char *name);
 
 int fdt_find_node_by_path(const void *fdt, const char *path);
+int fdt_find_node_by_type(const void *fdt, int nodeoffset, const char *type);
+
+int fdt_node_is_compatible(const void *fdt, int nodeoffset,
+			   const char *compat);
+int fdt_find_compatible_node(const void *fdt, int nodeoffset,
+			     const char *type, const char *compat);
 
 struct fdt_property *fdt_get_property(const void *fdt, int nodeoffset,
 				      const char *name, int *lenp);
libfdt/fdt_ro.c +143 -18

186 lines not on this page · raw message

Signature · 1 line
1.4.4.4