- Sep 15, 2017
-
-
Tien Fong Chee authored
Report Coverity log: The code uses a variable that has not been initialized, leading to unpredictable or unintended results. Reported-by: Coverity (CID: 60519) Signed-off-by:
Tien Fong Chee <tien.fong.chee@intel.com>
-
- Oct 13, 2016
-
-
Simon Glass authored
This includes small changes to the following functions, from upstream commit 6d1832c: - fdt_get_max_phandle() (upstream commit 84e0e134) - fdt_node_check_compatible (upstream commit 53bf130b) - fdt_setprop_inplace_namelen_partial() to remove useless brackets and use idx instead of index - _fdt_resize_property() to use idx instead of index - _fdt_splice() (upstream commit d4c7c25c) It also includes various typo fixes in libfdt.h Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Aug 20, 2016
-
-
Maxime Ripard authored
Add a function to modify inplace only a portion of a property.. This is especially useful when the property is an array of values, and you want to update one of them without changing the DT size. Signed-off-by:
Maxime Ripard <maxime.ripard@free-electrons.com> Acked-by:
Simon Glass <sjg@chromium.org>
-
- Jun 19, 2016
-
-
Robert P. J. Day authored
A number of style fixes across the files in this directory, including: * Correct invalid kernel-doc content. * Tidy up massive comment in fdt_region.c. * Use correct spelling of "U-Boot". * Replace tests of "! <var>" with "!<var>". * Replace "libfdt_env.h" with <libfdt_env.h>. Signed-off-by:
Robert P. J. Day <rpjday@crashcourse.ca> Acked-by:
Simon Glass <sjg@chromium.org>
-
- Aug 10, 2013
-
-
Roger Meier authored
Signed-off-by:
Roger Meier <roger@bufferoverflow.ch> Acked-by:
Wolfgang Denk <wd@denx.de>
-
- Jun 26, 2013
-
-
Simon Glass authored
Add a function to find regions in device tree given a list of nodes to include and properties to exclude. See the header file for full documentation. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Feb 08, 2013
-
-
Kim Phillips authored
commit 142419e "dtc/libfdt: sparse fixes", for u-boot's libfdt copy. Signed-off-by:
Kim Phillips <kim.phillips@freescale.com> Cc: Jerry Van Baren <gvb.uboot@gmail.com>
-
- Apr 13, 2010
-
-
Peter Tyser authored
Move the libfdt directory into the common lib/ directory to clean up the top-level directory. Signed-off-by:
Peter Tyser <ptyser@xes-inc.com>
-
- Apr 01, 2009
-
-
David Gibson authored
Currently fdt_next_node() will find the next node in the blob regardless of whether it is above, below or at the same level in the tree as the starting node - the depth parameter is updated to indicate which is the case. When a depth parameter is supplied, this patch makes it instead terminate immediately when it finds the END_NODE tag for a node at depth 0. In this case it returns the offset immediately past the END_NODE tag. This has a couple of advantages. First, this slightly simplifies fdt_subnode_offset(), which no longer needs to explicitly check that fdt_next_node()'s iteration hasn't left the starting node. Second, this allows fdt_next_node() to be used to implement _fdt_node_end_offset() considerably simplifying the latter function. The other users of fdt_next_node() either don't need to iterate out of the starting node, or don't pass a depth parameter at all. Any callers that really need to iterate out of the starting node, but keep tracking depth can do so by biasing the initial depth value. This is a semantic change, but I think it's very unlikely to break any existing library users. Signed-off-by:
David Gibson <david@gibson.dropbear.id.au>
-
- Aug 25, 2008
-
-
David Gibson authored
libfdt is supposed to easy to embed in projects all and sundry. Often, it won't be practical to separate the embedded libfdt's namespace from that of the surrounding project. Which means there can be namespace conflicts between even libfdt's internal/static functions and functions or macros coming from the surrounding project's headers via libfdt_env.h. This patch, therefore, renames a bunch of libfdt internal functions and macros and makes a few other chances to reduce the chances of namespace collisions with embedding projects. Specifically: - Internal functions (even static ones) are now named _fdt_*() - The type and (static) global for the error table in fdt_strerror() gain an fdt_ prefix - The unused macro PALIGN is removed - The memeq and streq macros are removed and open-coded in the users (they were only used once each) - Other macros gain an FDT_ prefix - To save some of the bulk from the previous change, an FDT_TAGALIGN() macro is introduced, where FDT_TAGALIGN(x) == FDT_ALIGN(x, FDT_TAGSIZE) Signed-off-by:
David Gibson <david@gibson.dropbear.id.au>
-
David Gibson authored
This patch turns on the -Wpointer-arith option in the dtc Makefile, and fixes the resulting warnings due to using (void *) in pointer arithmetic. While convenient, pointer arithmetic on void * is not portable, so it's better that we avoid it, particularly in libfdt. Also add necessary definition of uintptr_t needed by David Gibson's changeset "dtc: Enable and fix -Wpointer-arith warnings" (the definition comes from stdint.h, which u-boot doesn't have). -- gvb Signed-off-by:
David Gibson <david@gibson.dropbear.id.au> Signed-off-by:
Gerald Van Baren <vanbaren@cideas.com>
-
- Feb 29, 2008
-
-
Bartlomiej Sieka authored
Signed-off-by:
Bartlomiej Sieka <tur@semihalf.com>
-
- Nov 21, 2007
-
-
Kumar Gala authored
Update libfdt to commit 8eaf5e358366017aa2e846c5038d1aa19958314e from the device tree compiler (dtc) project. Signed-off-by:
Kumar Gala <galak@kernel.crashing.org>
-
Kumar Gala authored
Modify libfdt/Makefile to conditionally compile the *.c files based on the board config. Signed-off-by:
Kumar Gala <galak@kernel.crashing.org>
-
- Aug 10, 2007
-
-
Gerald Van Baren authored
This is the way u-boot reduces configured-out code. At Wolfgang Grandegger and Wolfgang Denk's request, make libfdt conform. Signed-off-by:
Gerald Van Baren <vanbaren@cideas.com>
-
- Apr 18, 2007
-
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Apr 15, 2007
-
-
Gerald Van Baren authored
-
- Mar 31, 2007
-
-
Gerald Van Baren authored
Enhanced the formerly private function _fdt_next_tag() to allow stepping through the tree, used to produce a human-readable dump, and made it part of the published interface. Also added some comments.
-
Gerald Van Baren authored
This adds the applicable libfdt source files (unmodified) and a README to explain where the source came from.
-