Skip to content

Commit f3543e6

Browse files
sjg20trini
authored andcommittedSep 29, 2022
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 <[email protected]>
1 parent da79b2f commit f3543e6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+179
-175
lines changed
 

‎arch/arm/mach-aspeed/ast2600/spl.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ u32 spl_boot_device(void)
5656
return BOOT_DEVICE_RAM;
5757
}
5858

59-
struct image_header *spl_get_load_buffer(ssize_t offset, size_t size)
59+
struct legacy_img_hdr *spl_get_load_buffer(ssize_t offset, size_t size)
6060
{
61-
return (struct image_header *)(CONFIG_SYS_LOAD_ADDR);
61+
return (struct legacy_img_hdr *)(CONFIG_SYS_LOAD_ADDR);
6262
}
6363

6464
#ifdef CONFIG_SPL_OS_BOOT

‎arch/arm/mach-imx/hab.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -589,7 +589,7 @@ static ulong get_image_ivt_offset(ulong img_addr)
589589
switch (genimg_get_format(buf)) {
590590
#if CONFIG_IS_ENABLED(LEGACY_IMAGE_FORMAT)
591591
case IMAGE_FORMAT_LEGACY:
592-
return (image_get_image_size((image_header_t *)img_addr)
592+
return (image_get_image_size((struct legacy_img_hdr *)img_addr)
593593
+ 0x1000 - 1) & ~(0x1000 - 1);
594594
#endif
595595
#if CONFIG_IS_ENABLED(FIT)

0 commit comments

Comments
 (0)
Please sign in to comment.