platform_external_dtc/libfdt
David Gibson aa1baab3cc libfdt: Several cleanups to parameter checking
This patch makes a couple of small cleanups to parameter checking of
libfdt functions.

	- In several functions which take a node offset, we use an
idiom involving fdt_next_tag() first to check that we have indeed been
given a node offset.  This patch adds a helper function
_fdt_check_node_offset() to encapsulate this usage of fdt_next_tag().

	- In fdt_rw.c in several places we have the expanded version
of the RW_CHECK_HEADER() macro for no particular reason.  This patch
replaces those instances with an invocation of the macro; that's what
it's for.

	- In fdt_sw.c we rename the check_header_sw() function to
sw_check_header() to match the analgous function in fdt_rw.c, and we
provide an SW_CHECK_HEADER() wrapper macro as RW_CHECK_HEADER()
functions in fdt_rw.c

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2008-05-29 08:15:53 -05:00
..
fdt.c libfdt: Several cleanups to parameter checking 2008-05-29 08:15:53 -05:00
fdt.h Fix whitespace in libfdt/fdt.h 2007-11-28 09:44:27 -06:00
fdt_ro.c libfdt: Several cleanups to parameter checking 2008-05-29 08:15:53 -05:00
fdt_rw.c libfdt: Several cleanups to parameter checking 2008-05-29 08:15:53 -05:00
fdt_strerror.c Move everything into a subdirectory in preparation for merge into dtc. 2007-06-14 11:58:35 +10:00
fdt_sw.c libfdt: Several cleanups to parameter checking 2008-05-29 08:15:53 -05:00
fdt_wip.c libfdt: Rename and publish _fdt_next_tag() 2007-10-24 09:56:27 -05:00
libfdt.h libfdt: Add and use a node iteration helper function. 2008-02-12 09:11:40 -06:00
libfdt_env.h Move everything into a subdirectory in preparation for merge into dtc. 2007-06-14 11:58:35 +10:00
libfdt_internal.h libfdt: Several cleanups to parameter checking 2008-05-29 08:15:53 -05:00
Makefile.libfdt dtc: Clean up included Makefile fragments 2008-05-19 14:07:53 -05:00
TODO dtc: Update TODO files 2007-12-19 08:20:26 -06:00