u-boot/lib/libfdt
Masahiro Yamada 73e1e7952a libfdt: fix error code of fdt_count_strings()
Currently, this function returns a positive value on error,
so we never know whether this function has succeeded or failed.

For example, if the given property is not found, fdt_getprop()
returns -FDT_ERR_NOTFOUND, and then this function inverts it,
i.e., returns FDT_ERR_NOTFOUND (=1).

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Fixes: bc4147ab2d ("fdt: Add a function to count strings")
Acked-by: Simon Glass <sjg@chromium.org>
2015-07-20 07:21:47 -06:00
..
fdt.c libfdt: SPDX-License-Identifier: GPL-2.0+ BSD-2-Clause 2013-08-10 09:04:25 -04:00
fdt_addresses.c fdt: Sync up with libfdt 2014-08-09 11:17:04 -04:00
fdt_empty_tree.c Coding Style cleanup: remove trailing empty lines 2013-10-14 16:06:54 -04:00
fdt_ro.c libfdt: fix error code of fdt_count_strings() 2015-07-20 07:21:47 -06:00
fdt_rw.c fdt: Sync up with libfdt 2014-08-09 11:17:04 -04:00
fdt_strerror.c libfdt: SPDX-License-Identifier: GPL-2.0+ BSD-2-Clause 2013-08-10 09:04:25 -04:00
fdt_sw.c fdt: Sync up with libfdt 2014-08-09 11:17:04 -04:00
fdt_wip.c libfdt: SPDX-License-Identifier: GPL-2.0+ BSD-2-Clause 2013-08-10 09:04:25 -04:00
libfdt_internal.h fdt: Sync up with libfdt 2014-08-09 11:17:04 -04:00
Makefile libfdt: move CONFIG_OF_LIBFDT and CONFIG_FIT to lib/Makefile 2014-12-08 09:35:47 -05:00
README Move libfdt/ into lib/ 2010-04-13 09:13:04 +02:00

The libfdt functionality was written by David Gibson.  The original
source came from the git repository:

URL:		git://ozlabs.org/home/dgibson/git/libfdt.git

author		David Gibson <dgibson@sneetch.(none)>
		Fri, 23 Mar 2007 04:16:54 +0000 (15:16 +1100)
committer	David Gibson <dgibson@sneetch.(none)>
		Fri, 23 Mar 2007 04:16:54 +0000 (15:16 +1100)
commit		857f54e79f74429af20c2b5ecc00ee98af6a3b8b
tree		2f648f0f88225a51ded452968d28b4402df8ade0
parent		07a12a08005f3b5cd9337900a6551e450c07b515

To adapt for u-boot usage, only the applicable files were copied and
imported into the u-boot git repository.
Omitted:
* GPL - u-boot comes with a copy of the GPL license
* test subdirectory - not directly useful for u-boot

After importing, other customizations were performed.  See the git log
for details.

Jerry Van Baren