Mirror of DTC
Find a file
David Gibson a7ee95ded6 libfdt: Abolish encoding of error codes into pointers
This patch abolishes the non-standard and confusing encoding of errors
into pointer return values.  The only functions still returning such a
potentially encoded pointer are fdt_get_property() and fdt_getprop().
Those functions also return a length via an (int *).  With this patch
those functions instead now return NULL on any error, and return the
code indicating the type of error in the length paramater.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2006-12-15 15:12:49 +11:00
tests libfdt: Abolish encoding of error codes into pointers 2006-12-15 15:12:49 +11:00
.gitignore libfdt - library for manipulating device trees in flattened format 2006-11-27 16:21:28 +11:00
fdt.c libfdt: Use void * to refer to device tree blobs 2006-12-15 15:12:47 +11:00
fdt.h libfdt: Introduce flat tree format v17 2006-12-01 16:25:39 +11:00
fdt_ro.c libfdt: Abolish encoding of error codes into pointers 2006-12-15 15:12:49 +11:00
fdt_rw.c libfdt: Abolish encoding of error codes into pointers 2006-12-15 15:12:49 +11:00
fdt_sw.c libfdt: Use void * to refer to device tree blobs 2006-12-15 15:12:47 +11:00
fdt_wip.c libfdt: Abolish encoding of error codes into pointers 2006-12-15 15:12:49 +11:00
GPL Add a copy of the GPL 2006-11-29 16:49:27 +11:00
libfdt.h libfdt: Abolish encoding of error codes into pointers 2006-12-15 15:12:49 +11:00
libfdt_env.h libfdt: Export accessors for header fields 2006-12-01 15:02:10 +11:00
libfdt_internal.h libfdt: Abolish encoding of error codes into pointers 2006-12-15 15:12:49 +11:00
Makefile libfdt: Read-write support 2006-12-01 16:59:43 +11:00