X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fflash%2Fnor%2Fspi.h;h=6e939b76910d47393a6f3d6cf6cd3c498caa6fb8;hb=32c4c18045599ddfed36f52b276166ce932b1bf7;hp=e397a6be421fed748697a24ec4cb1503e2e88d5c;hpb=08d4411b59dd8bd0e7d8009003b71d23acbf6eee;p=openocd.git 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 */