aboutsummaryrefslogtreecommitdiff
path: root/src/flash/nor/spi.h
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.h
parentfacd0e7827926d0639260be40e9cc4c595794194 (diff)
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.h')
-rw-r--r--src/flash/nor/spi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nor/spi.h b/src/flash/nor/spi.h
index e397a6be..6e939b76 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 */