flash: declare fixed arrays const
[fw/openocd] / src / flash / nor / spi.h
index e397a6be421fed748697a24ec4cb1503e2e88d5c..6e939b76910d47393a6f3d6cf6cd3c498caa6fb8 100644 (file)
@@ -43,7 +43,7 @@ struct flash_device {
        .size_in_bytes = size   \
 }
 
-extern struct flash_device flash_devices[];
+extern const struct flash_device flash_devices[];
 
 /* fields in SPI flash status register */
 #define SPIFLASH_BSY_BIT               0x00000001 /* WIP Bit of SPI SR on SMI SR */