diff options
| author | Quentin Schulz <[email protected]> | 2025-12-03 17:19:32 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-12-16 11:39:38 -0600 |
| commit | 634dcda25924567d000396542948fc33c7e8bc1a (patch) | |
| tree | f8a3a6097ec1dc39a3fb6e08701b53d4c97182a7 /boot | |
| parent | dca19206acf2af2d339087bb62aa0b8ee1b0e326 (diff) | |
boot/fit: use constants for property strings
Some properties have their string represented in include/image.h via
constants, so let's use those constants instead of using a hardcoded
string.
Signed-off-by: Quentin Schulz <[email protected]>
Diffstat (limited to 'boot')
| -rw-r--r-- | boot/common_fit.c | 4 | ||||
| -rw-r--r-- | boot/image-fit.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/boot/common_fit.c b/boot/common_fit.c index a2f9b8d83c3..fd434fe28e1 100644 --- a/boot/common_fit.c +++ b/boot/common_fit.c @@ -46,12 +46,12 @@ int fit_find_config_node(const void *fdt) return -EINVAL; } - dflt_conf_name = fdt_getprop(fdt, conf, "default", &len); + dflt_conf_name = fdt_getprop(fdt, conf, FIT_DEFAULT_PROP, &len); for (node = fdt_first_subnode(fdt, conf); node >= 0; node = fdt_next_subnode(fdt, node)) { - name = fdt_getprop(fdt, node, "description", &len); + name = fdt_getprop(fdt, node, FIT_DESC_PROP, &len); if (!name) { #ifdef CONFIG_SPL_LIBCOMMON_SUPPORT printf("%s: Missing FDT description in DTB\n", diff --git a/boot/image-fit.c b/boot/image-fit.c index cccaa48f683..0205637ed16 100644 --- a/boot/image-fit.c +++ b/boot/image-fit.c @@ -1760,7 +1760,7 @@ int fit_conf_find_compat(const void *fit, const void *fdt) fdt = fit; /* search in FIT image */ compat_noffset = noffset; /* search under config node */ } else { /* Otherwise extract it from the kernel FDT. */ - kfdt_name = fdt_getprop(fit, noffset, "fdt", &len); + kfdt_name = fdt_getprop(fit, noffset, FIT_FDT_PROP, &len); if (!kfdt_name) { debug("No fdt property found.\n"); continue; |
