fdt: Move MULTI_DTB_FIT handling out of fdtdec_setup()
authorSimon Glass <sjg@chromium.org>
Fri, 17 Dec 2021 03:59:24 +0000 (20:59 -0700)
committerTom Rini <trini@konsulko.com>
Thu, 23 Dec 2021 15:24:39 +0000 (10:24 -0500)
commit3f51f78cbd1537deacf6ba163b014f9b200defd4
tree8ba5a53676065b13d20318448cd0ac379491a88f
parented96683e009c9349005821ce790bc080ef572c22
fdt: Move MULTI_DTB_FIT handling out of fdtdec_setup()

This logic is a bit convoluted for one function. Move the mulit-FIT part
into its own function.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
lib/fdtdec.c