aboutsummaryrefslogtreecommitdiff
path: root/include/fdt_support.h
diff options
context:
space:
mode:
authorKory Maincent2021-05-04 19:31:21 +0200
committerTom Rini2021-05-13 07:19:34 -0400
commitbbdbcaf59dc518f26897f162f3512a8a596c5d97 (patch)
treea619741aed18c76714d07364c5aaeaf3e937a4e0 /include/fdt_support.h
parentea184cbff99ea1d82dcf94c95afe054e95da5069 (diff)
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/fdt_support.h')
-rw-r--r--include/fdt_support.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/fdt_support.h b/include/fdt_support.h
index e2a4689cd8a..1e4dbc0a8f6 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
*