X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fflash%2Fnor%2Fspi.h;h=6e939b76910d47393a6f3d6cf6cd3c498caa6fb8;hp=e397a6be421fed748697a24ec4cb1503e2e88d5c;hb=32c4c18045599ddfed36f52b276166ce932b1bf7;hpb=facd0e7827926d0639260be40e9cc4c595794194 diff --git a/src/flash/nor/spi.h b/src/flash/nor/spi.h index e397a6be42..6e939b7691 100644 --- a/src/flash/nor/spi.h +++ b/src/flash/nor/spi.h @@ -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 */