mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
efi: Use struct efi_gop_mode_info in struct efi_entry_gopmode
Since C99 flexible array members are allowed at the end of structures. We require C11. Use struct efi_gop_mode_info in the definition of struct efi_entry_gopmode to avoid code duplication and unnecessary conversions. Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
This commit is contained in:
@@ -1490,15 +1490,6 @@ struct efi_hii_config_access_protocol {
|
||||
#define EFI_GOT_BGRA8 1
|
||||
#define EFI_GOT_BITMASK 2
|
||||
|
||||
struct efi_gop_mode_info {
|
||||
u32 version;
|
||||
u32 width;
|
||||
u32 height;
|
||||
u32 pixel_format;
|
||||
u32 pixel_bitmask[4];
|
||||
u32 pixels_per_scanline;
|
||||
};
|
||||
|
||||
struct efi_gop_mode {
|
||||
u32 max_mode;
|
||||
u32 mode;
|
||||
|
||||
Reference in New Issue
Block a user