On 2026-09-24T05:54:48, Aristo Chen <[email protected]> wrote:
> boot: fit: use constants for FIT property names
>
> Commit 634dcda25924 ("boot/fit: use constants for property strings")
> switched boot/common_fit.c and boot/image-fit.c to the property name
> constants in include/image.h, but a few literals are left in boot/:
>
> - fdt_offset() in boot_fit.c reads "data-offset" and "data-size" from
>   the FDT image node; use FIT_DATA_OFFSET_PROP and FIT_DATA_SIZE_PROP.
> - boot_get_fpga() reads the "compatible" property of the FPGA image
>   node. Commit 3059eb0c27dd ("boot/fit: declare (and use) new constant
>   for conf's compatible prop") added FIT_COMPAT_PROP and noted that FPGA
>   image nodes carry the same property; use it there too.
> - fit_image_load_storage() looks up the dm-verity subnode by a literal
>   name; use FIT_VERITY_NODENAME like the rest of the dm-verity code.
>
> No functional change.
>
> Signed-off-by: Aristo Chen <[email protected]>
> Reviewed-by: Quentin Schulz <[email protected]>
>
> boot/boot_fit.c    | 4 ++--
>  boot/image-board.c | 3 ++-
>  boot/image-fit.c   | 3 ++-
>  3 files changed, 6 insertions(+), 4 deletions(-)

Reviewed-by: Simon Glass <[email protected]>

Reply via email to