flash_bank_t -> struct flash_bank
[fw/openocd] / src / flash / non_cfi.h
index f691560505dbd970fa03282e32bc240275812444..44c92db4314182407d18781ee8dd0a626bb3dc39 100644 (file)
@@ -22,7 +22,7 @@
 
 #include "flash.h"
 
-typedef struct non_cfi_s
+struct non_cfi
 {
        uint16_t mfr;
        uint16_t id;
@@ -33,9 +33,8 @@ typedef struct non_cfi_s
        uint8_t num_erase_regions;
        uint32_t erase_region_info[6];
        uint8_t  status_poll_mask;
-} non_cfi_t;
+};
 
-extern non_cfi_t non_cfi_flashes[];
-extern void cfi_fixup_non_cfi(flash_bank_t *bank);
+void cfi_fixup_non_cfi(struct flash_bank *bank);
 
 #endif /* NON_CFI_H */