diff options
author | Spencer Oliver <spen@spen-soft.co.uk> | 2014-01-20 15:03:24 +0000 |
---|---|---|
committer | Andreas Fritiofson <andreas.fritiofson@gmail.com> | 2014-02-06 22:17:51 +0000 |
commit | 32c4c18045599ddfed36f52b276166ce932b1bf7 (patch) | |
tree | 0588eb0d97558a49f9c5417e954bb237032499b7 /src/flash/nor/spi.h | |
parent | facd0e7827926d0639260be40e9cc4c595794194 (diff) | |
download | riscv-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.h')
-rw-r--r-- | src/flash/nor/spi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nor/spi.h b/src/flash/nor/spi.h index e397a6b..6e939b7 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 */ |