summaryrefslogtreecommitdiff
path: root/common/spl/spl_semihosting.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-09-07 05:26:52 +0300
committerTom Rini <trini@konsulko.com>2022-09-29 23:07:57 +0300
commitf3543e69442ca393e52df253d9c5d45bc189d471 (patch)
tree99423df56b15a01188099161332c6c8aed301972 /common/spl/spl_semihosting.c
parentda79b2f25e5352a8e09b96ecef56df009f03c0b5 (diff)
downloadu-boot-f3543e69442ca393e52df253d9c5d45bc189d471.tar.xz
treewide: Drop image_header_t typedef
This is not needed and we should avoid typedefs. Use the struct instead and rename it to indicate that it really is a legacy struct. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/spl/spl_semihosting.c')
-rw-r--r--common/spl/spl_semihosting.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/spl/spl_semihosting.c b/common/spl/spl_semihosting.c
index df6aeb2951..5b5e842a11 100644
--- a/common/spl/spl_semihosting.c
+++ b/common/spl/spl_semihosting.c
@@ -27,7 +27,7 @@ static int spl_smh_load_image(struct spl_image_info *spl_image,
const char *filename = CONFIG_SPL_FS_LOAD_PAYLOAD_NAME;
int ret;
long fd, len;
- struct image_header *header =
+ struct legacy_img_hdr *header =
spl_get_load_buffer(-sizeof(*header), sizeof(*header));
fd = smh_open(filename, MODE_READ | MODE_BINARY);
@@ -43,7 +43,7 @@ static int spl_smh_load_image(struct spl_image_info *spl_image,
}
len = ret;
- ret = smh_read_full(fd, header, sizeof(struct image_header));
+ ret = smh_read_full(fd, header, sizeof(struct legacy_img_hdr));
if (ret) {
log_debug("could not read image header: %d\n", ret);
goto out;