diff options
author | Kory Maincent <kory.maincent@bootlin.com> | 2021-05-04 20:31:21 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-05-13 14:19:34 +0300 |
commit | bbdbcaf59dc518f26897f162f3512a8a596c5d97 (patch) | |
tree | a619741aed18c76714d07364c5aaeaf3e937a4e0 /include | |
parent | ea184cbff99ea1d82dcf94c95afe054e95da5069 (diff) | |
download | u-boot-bbdbcaf59dc518f26897f162f3512a8a596c5d97.tar.xz |
fdt_support: move fdt_valid from cmd_fdt.c to fdt_support.c
Move the fdt_valid function to fdt_support.
This changes allow to be able to test the validity of a devicetree in
other c files.
Update code syntax.
Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Maxime Ripard <maxime@cerno.tech>
Diffstat (limited to 'include')
-rw-r--r-- | include/fdt_support.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/fdt_support.h b/include/fdt_support.h index e2a4689cd8..1e4dbc0a8f 100644 --- a/include/fdt_support.h +++ b/include/fdt_support.h @@ -352,6 +352,8 @@ int fdt_setup_simplefb_node(void *fdt, int node, u64 base_address, u32 width, int fdt_overlay_apply_verbose(void *fdt, void *fdto); +int fdt_valid(struct fdt_header **blobp); + /** * fdt_get_cells_len() - Get the length of a type of cell in top-level nodes * |