fdt: Add function to return next compatible subnode
authorSimon Glass <sjg@chromium.org>
Mon, 2 Apr 2012 13:18:42 +0000 (13:18 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Tue, 15 May 2012 06:31:36 +0000 (08:31 +0200)
commit3ddecfc74086aa185a2f671cc07cb826b72d35f0
treeae643a3369183c2286b8e2a9c503eb4f40d759be
parent96875e7d3b9900d0e63f0b591ff5693b31c4d9c3
fdt: Add function to return next compatible subnode

We need to iterate through subnodes of a parent, looking only at
compatible nodes. Add a utility function to do this for us.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Tom Warren <twarren@nvidia.com>
include/fdtdec.h
lib/fdtdec.c