Commit Graph

4 Commits

Author SHA1 Message Date
David Gibson 94993f4fc4 libfdt: Abolish fdt_property_offset()
fdt_property_offset() is the only function in the library returning a
direct offset to a property, and no function takes such an offset
(they only take offsets to nodes, not properties).  Furthermore the
only client uses for this function I can think of involve immediately
translating the offset into a pointer, effectively duplicating the
internal function _fdt_getprop()

This function abolishes fdt_property_offset(), replacing it with
fdt_get_property(), a renamed and now externally visible version of
_fdt_getprop().
2006-12-11 16:15:34 +11:00
David Gibson e25487db34 libfdt: Fix libfdt for little endian hosts
This patch fixes a number of embarrasing oversights which meant libfdt
did not work correctly on little endian machines.  With this patch the
testsuite now passes on x86.  Device trees are always created
big-endian.
2006-12-04 12:52:45 +11:00
David Gibson 7ba551f966 libfdt: Read-write support
This patch adds support for random access, read-write support on flat trees.
2006-12-01 16:59:43 +11:00
David Gibson 3da0f9a10d libfdt - library for manipulating device trees in flattened format
Initial revision, read-only and "in-place" (no memmove() required)
write operations only.
2006-11-27 16:21:28 +11:00