[PATCH 2/3] dtoc: Fix widening an int array to an int
Simon Glass
sjg at chromium.org
Sun Aug 1 01:03:35 CEST 2021
An int array can hold a single int so we should not need to do anything
in the widening operation. However due to a quirk in the code, an int[3]
widened with an int produced an int[4]. Fix this and add a test.
Fix a comment typo while we are here.
Signed-off-by: Simon Glass <sjg at chromium.org>
Reported-by: Tom Rini <trini at konsulko.com>
---
test/dm/of_platdata.c | 4 +---
tools/dtoc/fdt.py | 15 ++++++++-------
tools/dtoc/test_dtoc.py | 6 +++---
tools/dtoc/test_fdt.py | 11 ++++++++++-
4 files changed, 22 insertions(+), 14 deletions(-)
Applied to u-boot-dm, thanks!
More information about the U-Boot
mailing list