diff mbox series

fit: Allow external data for FDTs

Message ID 20210625165804.3622284-1-john@metanate.com
State Accepted
Commit 650bf008e57a98cd6fa89839d48561dfdc5c51e7
Delegated to: Tom Rini
Headers show
Series fit: Allow external data for FDTs | expand

Commit Message

John Keeping June 25, 2021, 4:58 p.m. UTC
Switch to fit_image_get_data_and_size() for consistency with all other
data loaded from FIT.

Signed-off-by: John Keeping <john@metanate.com>
---
 common/image-fit.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Simon Glass June 26, 2021, 6:32 p.m. UTC | #1
On Fri, 25 Jun 2021 at 10:58, John Keeping <john@metanate.com> wrote:
>
> Switch to fit_image_get_data_and_size() for consistency with all other
> data loaded from FIT.
>
> Signed-off-by: John Keeping <john@metanate.com>
> ---
>  common/image-fit.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg@chromium.org>
Tom Rini July 23, 2021, 12:34 p.m. UTC | #2
On Fri, Jun 25, 2021 at 05:58:04PM +0100, John Keeping wrote:

> Switch to fit_image_get_data_and_size() for consistency with all other
> data loaded from FIT.
> 
> Signed-off-by: John Keeping <john@metanate.com>
> Reviewed-by: Simon Glass <sjg@chromium.org>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/common/image-fit.c b/common/image-fit.c
index 94501b1071..4c5a24806d 100644
--- a/common/image-fit.c
+++ b/common/image-fit.c
@@ -1772,7 +1772,8 @@  int fit_conf_find_compat(const void *fit, const void *fdt)
 			}
 
 			/* search in this config's kernel FDT */
-			if (fit_image_get_data(fit, kfdt_noffset, &fdt, &sz)) {
+			if (fit_image_get_data_and_size(fit, kfdt_noffset,
+							&fdt, &sz)) {
 				debug("Failed to get fdt \"%s\".\n", kfdt_name);
 				continue;
 			}