mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
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>
This commit is contained in:
@@ -57,14 +57,14 @@ static int fdt_offset(const void *fit)
|
||||
|
||||
void *locate_dtb_in_fit(const void *fit)
|
||||
{
|
||||
struct image_header *header;
|
||||
struct legacy_img_hdr *header;
|
||||
int size;
|
||||
int ret;
|
||||
|
||||
size = fdt_totalsize(fit);
|
||||
size = (size + 3) & ~3;
|
||||
|
||||
header = (struct image_header *)fit;
|
||||
header = (struct legacy_img_hdr *)fit;
|
||||
|
||||
if (image_get_magic(header) != FDT_MAGIC) {
|
||||
debug("No FIT image appended to U-boot\n");
|
||||
|
Reference in New Issue
Block a user