aboutsummaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorDario Binacchi <dario.binacchi@amarulasolutions.com>2022-08-26 15:15:41 +0200
committerSimon Glass <sjg@chromium.org>2022-08-26 16:33:48 -0600
commitc2ee5ee7b3393770dbe809ca36814083feffaf83 (patch)
tree38fa979e9cec4017c2bf02d1f00e625b6e79f954 /boot
parent2d74226f2c6ed5b758c97865bef7e42c9f389437 (diff)
downloadu-boot-c2ee5ee7b3393770dbe809ca36814083feffaf83.zip
u-boot-c2ee5ee7b3393770dbe809ca36814083feffaf83.tar.gz
u-boot-c2ee5ee7b3393770dbe809ca36814083feffaf83.tar.bz2
Rename disto_[pxe_]getfile to distro_[pxe_]getfile
Replace 'disto' with 'distro' since they are all functions about distro booting. Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Diffstat (limited to 'boot')
-rw-r--r--boot/bootmeth_distro.c6
-rw-r--r--boot/bootmeth_pxe.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/boot/bootmeth_distro.c b/boot/bootmeth_distro.c
index fea09b2..5c6c687 100644
--- a/boot/bootmeth_distro.c
+++ b/boot/bootmeth_distro.c
@@ -35,8 +35,8 @@ static int distro_get_state_desc(struct udevice *dev, char *buf, int maxsize)
return 0;
}
-static int disto_getfile(struct pxe_context *ctx, const char *file_path,
- char *file_addr, ulong *sizep)
+static int distro_getfile(struct pxe_context *ctx, const char *file_path,
+ char *file_addr, ulong *sizep)
{
struct distro_info *info = ctx->userdata;
ulong addr;
@@ -113,7 +113,7 @@ static int distro_boot(struct udevice *dev, struct bootflow *bflow)
addr = map_to_sysmem(bflow->buf);
info.dev = dev;
info.bflow = bflow;
- ret = pxe_setup_ctx(&ctx, &cmdtp, disto_getfile, &info, true,
+ ret = pxe_setup_ctx(&ctx, &cmdtp, distro_getfile, &info, true,
bflow->subdir);
if (ret)
return log_msg_ret("ctx", -EINVAL);
diff --git a/boot/bootmeth_pxe.c b/boot/bootmeth_pxe.c
index f1e2b4c..e699216 100644
--- a/boot/bootmeth_pxe.c
+++ b/boot/bootmeth_pxe.c
@@ -23,8 +23,8 @@
#include <net.h>
#include <pxe_utils.h>
-static int disto_pxe_getfile(struct pxe_context *ctx, const char *file_path,
- char *file_addr, ulong *sizep)
+static int distro_pxe_getfile(struct pxe_context *ctx, const char *file_path,
+ char *file_addr, ulong *sizep)
{
struct distro_info *info = ctx->userdata;
ulong addr;
@@ -142,7 +142,7 @@ static int distro_pxe_boot(struct udevice *dev, struct bootflow *bflow)
info.dev = dev;
info.bflow = bflow;
info.cmdtp = &cmdtp;
- ret = pxe_setup_ctx(ctx, &cmdtp, disto_pxe_getfile, &info, false,
+ ret = pxe_setup_ctx(ctx, &cmdtp, distro_pxe_getfile, &info, false,
bflow->subdir);
if (ret)
return log_msg_ret("ctx", -EINVAL);