]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
flash.h: Remove CONFIG_SYS_FLASH_CFI from flash_info_t
authorBin Meng <bmeng.cn@gmail.com>
Sat, 7 Aug 2021 05:00:01 +0000 (13:00 +0800)
committerStefan Roese <sr@denx.de>
Wed, 11 Aug 2021 08:36:10 +0000 (10:36 +0200)
Those embers wrapped with CONFIG_SYS_FLASH_CFI in struct flash_info_t
are unconditionally used in the cfi_flash.c driver.

Drop the #ifdefs in the definition of flash_info_t.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
include/flash.h

index 42b18a60475264594c1c8aa601765761dba80b87..f3959f5012021a2033f0696442d9e5eb4089fa86 100644 (file)
@@ -21,7 +21,6 @@ typedef struct {
        ulong   flash_id;               /* combined device & manufacturer code  */
        ulong   start[CONFIG_SYS_MAX_FLASH_SECT];   /* virtual sector start address */
        uchar   protect[CONFIG_SYS_MAX_FLASH_SECT]; /* sector protection status */
-#ifdef CONFIG_SYS_FLASH_CFI
        uchar   portwidth;              /* the width of the port                */
        uchar   chipwidth;              /* the width of the chip                */
        uchar   chip_lsb;               /* extra Least Significant Bit in the */
@@ -45,7 +44,6 @@ typedef struct {
        ulong   addr_unlock2;           /* unlock address 2 for AMD flash roms  */
        uchar   sr_supported;           /* status register supported            */
        const char *name;               /* human-readable name                  */
-#endif
 #ifdef CONFIG_DM_MTD
        struct mtd_info *mtd;
 #endif