fdt_support: move fdt_valid from cmd_fdt.c to fdt_support.c
authorKory Maincent <kory.maincent@bootlin.com>
Tue, 4 May 2021 17:31:21 +0000 (19:31 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 13 May 2021 11:19:34 +0000 (07:19 -0400)
commitbbdbcaf59dc518f26897f162f3512a8a596c5d97
treea619741aed18c76714d07364c5aaeaf3e937a4e0
parentea184cbff99ea1d82dcf94c95afe054e95da5069
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>
cmd/fdt.c
common/fdt_support.c
include/fdt_support.h