bootstd: Fix incorrect struct name in bootmeth_setup_iter_order()
authorSam Protsenko <semen.protsenko@linaro.org>
Sun, 12 Jan 2025 03:42:13 +0000 (21:42 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 20 Jun 2025 14:01:09 +0000 (08:01 -0600)
There is no such thing as struct bootmeth, it's probably a typo. This
issue doesn't affect the execution as it's a pointer, and pointer sizes
are the same for all data types. But it can be confusing, so make it
struct udevice, as it should be.

Fixes: a950d31abe98 ("bootstd: Add the bootmeth uclass and helpers")
Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
boot/bootmeth-uclass.c

index 57b30bc..188f6ea 100644 (file)
@@ -141,7 +141,7 @@ int bootmeth_setup_iter_order(struct bootflow_iter *iter, bool include_global)
                        goto err_order;
                }
                memcpy(order, std->bootmeth_order,
-                      count * sizeof(struct bootmeth *));
+                      count * sizeof(struct udevice *));
 
                if (IS_ENABLED(CONFIG_BOOTMETH_GLOBAL)) {
                        for (i = 0; i < count; i++) {