[PATCH v3] cmd: fdt: Use env_set_hex() for "get addr" and "get size"

Simon Glass sjg at chromium.org
Sun Apr 2 23:33:24 CEST 2023


On Sat, 11 Mar 2023 at 09:29, Marek Vasut
<marek.vasut+renesas at mailbox.org> wrote:
>
> The 'fdt get addr' and 'env get size' is always assumed to be hex
> value, drop the prefix, and outright switch to env_set_hex(). Since
> this might break existing users who depend on the existing behavior
> with 0x prefix, this is a separate patch.
>
> Revert if this breaks anything.
>
> Signed-off-by: Marek Vasut <marek.vasut+renesas at mailbox.org>
> ---
> Cc: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Tom Rini <trini at konsulko.com>
> ---
> V2: - Use env_set_hex() instead
>     - Update env get size too
> V3: Rebase on dm/next
> ---
>  cmd/fdt.c | 13 ++-----------
>  1 file changed, 2 insertions(+), 11 deletions(-)
>

Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot-dm/next, thanks!


More information about the U-Boot mailing list