mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 01:02:19 +02:00
treewide: Drop image_info_t typedef
This is not needed and we should avoid typedefs. Use the struct instead. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -399,7 +399,7 @@ static int handle_decomp_error(int comp_type, size_t uncomp_size,
|
|||||||
#ifndef USE_HOSTCC
|
#ifndef USE_HOSTCC
|
||||||
static int bootm_load_os(struct bootm_headers *images, int boot_progress)
|
static int bootm_load_os(struct bootm_headers *images, int boot_progress)
|
||||||
{
|
{
|
||||||
image_info_t os = images->os;
|
struct image_info os = images->os;
|
||||||
ulong load = os.load;
|
ulong load = os.load;
|
||||||
ulong load_end;
|
ulong load_end;
|
||||||
ulong blob_start = os.start;
|
ulong blob_start = os.start;
|
||||||
|
@@ -278,13 +278,13 @@ typedef struct image_header {
|
|||||||
uint8_t ih_name[IH_NMLEN]; /* Image Name */
|
uint8_t ih_name[IH_NMLEN]; /* Image Name */
|
||||||
} image_header_t;
|
} image_header_t;
|
||||||
|
|
||||||
typedef struct image_info {
|
struct image_info {
|
||||||
ulong start, end; /* start/end of blob */
|
ulong start, end; /* start/end of blob */
|
||||||
ulong image_start, image_len; /* start of image within blob, len of image */
|
ulong image_start, image_len; /* start of image within blob, len of image */
|
||||||
ulong load; /* load addr for the image */
|
ulong load; /* load addr for the image */
|
||||||
uint8_t comp, type, os; /* compression, type of image, os type */
|
uint8_t comp, type, os; /* compression, type of image, os type */
|
||||||
uint8_t arch; /* CPU architecture */
|
uint8_t arch; /* CPU architecture */
|
||||||
} image_info_t;
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Legacy and FIT format headers used by do_bootm() and do_bootm_<os>()
|
* Legacy and FIT format headers used by do_bootm() and do_bootm_<os>()
|
||||||
@@ -324,7 +324,7 @@ struct bootm_headers {
|
|||||||
int fit_noffset_setup;/* x86 setup subimage node offset */
|
int fit_noffset_setup;/* x86 setup subimage node offset */
|
||||||
|
|
||||||
#ifndef USE_HOSTCC
|
#ifndef USE_HOSTCC
|
||||||
image_info_t os; /* os image info */
|
struct image_info os; /* os image info */
|
||||||
ulong ep; /* entry point of OS */
|
ulong ep; /* entry point of OS */
|
||||||
|
|
||||||
ulong rd_start, rd_end;/* ramdisk start/end */
|
ulong rd_start, rd_end;/* ramdisk start/end */
|
||||||
|
Reference in New Issue
Block a user