aboutsummaryrefslogtreecommitdiff
path: root/src/flash/nor/spi.c
diff options
context:
space:
mode:
authorSpencer Oliver <spen@spen-soft.co.uk>2014-01-20 15:03:24 +0000
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>2014-02-06 22:17:51 +0000
commit32c4c18045599ddfed36f52b276166ce932b1bf7 (patch)
tree0588eb0d97558a49f9c5417e954bb237032499b7 /src/flash/nor/spi.c
parentfacd0e7827926d0639260be40e9cc4c595794194 (diff)
downloadriscv-openocd-32c4c18045599ddfed36f52b276166ce932b1bf7.zip
riscv-openocd-32c4c18045599ddfed36f52b276166ce932b1bf7.tar.gz
riscv-openocd-32c4c18045599ddfed36f52b276166ce932b1bf7.tar.bz2
flash: declare fixed arrays const
Change-Id: Id06b8b53ec59a7b3182f60f51dde5b16563aaeef Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk> Reviewed-on: http://openocd.zylin.com/1887 Tested-by: jenkins
Diffstat (limited to 'src/flash/nor/spi.c')
-rw-r--r--src/flash/nor/spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nor/spi.c b/src/flash/nor/spi.c
index 2eef632..e87f675 100644
--- a/src/flash/nor/spi.c
+++ b/src/flash/nor/spi.c
@@ -31,7 +31,7 @@
/* Shared table of known SPI flash devices for SPI-based flash drivers. Taken
* from device datasheets and Linux SPI flash drivers. */
-struct flash_device flash_devices[] = {
+const struct flash_device flash_devices[] = {
/* name, erase_cmd, chip_erase_cmd, device_id, pagesize, sectorsize, size_in_bytes */
FLASH_ID("st m25p05", 0xd8, 0xc7, 0x00102020, 0x80, 0x8000, 0x10000),
FLASH_ID("st m25p10", 0xd8, 0xc7, 0x00112020, 0x80, 0x8000, 0x20000),