Go to file
David Gibson a6c76f923d libfdt: More thorough use of constification
As a read-only functions, which take a const pointer to the fdt, treat
fdt_get_property() and fdt_getprop() as returning const pointers to
within the blob.  fdt_get_property_w() and fdt_getprop_w() versions
are supplied which take a non-const fdt pointer and return a non-const
pointer for the benefit of callers wishing to alter the device tree
contents.

Likewise the lower-level fdt_offset_ptr() and _fdt_offset_ptr()
functions are changed to return const pointers, with *_w() versions
supplied.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2007-06-13 14:18:10 +10:00
tests libfdt: More thorough use of constification 2007-06-13 14:18:10 +10:00
.gitignore libfdt - library for manipulating device trees in flattened format 2006-11-27 16:21:28 +11:00
GPL Add a copy of the GPL 2006-11-29 16:49:27 +11:00
Makefile libfdt: Add fdt_strerror() function to library 2006-12-21 09:57:08 +11:00
TODO libfdt: Add fdt_strerror() function to library 2006-12-21 09:57:08 +11:00
fdt.c libfdt: More thorough use of constification 2007-06-13 14:18:10 +10:00
fdt.h libfdt: Remove #includes from fdt.h 2007-03-23 15:16:54 +11:00
fdt_ro.c libfdt: More thorough use of constification 2007-06-13 14:18:10 +10:00
fdt_rw.c libfdt: More thorough use of constification 2007-06-13 14:18:10 +10:00
fdt_strerror.c libfdt: Fix fdt_strerror() bugs 2007-02-23 14:40:10 +11:00
fdt_sw.c libfdt: More thorough use of constification 2007-06-13 14:18:10 +10:00
fdt_wip.c libfdt: More thorough use of constification 2007-06-13 14:18:10 +10:00
libfdt.h libfdt: More thorough use of constification 2007-06-13 14:18:10 +10:00
libfdt_env.h libfdt: Export accessors for header fields 2006-12-01 15:02:10 +11:00
libfdt_internal.h libfdt: More thorough use of constification 2007-06-13 14:18:10 +10:00