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/stellaris.c | |
parent | facd0e7827926d0639260be40e9cc4c595794194 (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/stellaris.c')
-rw-r--r-- | src/flash/nor/stellaris.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flash/nor/stellaris.c b/src/flash/nor/stellaris.c index 71debdc7..8886c195 100644 --- a/src/flash/nor/stellaris.c +++ b/src/flash/nor/stellaris.c @@ -125,7 +125,7 @@ struct stellaris_flash_bank { /* Autogenerated by contrib/gen-stellaris-part-header.pl */ /* From Stellaris Firmware Development Package revision 9453 */ -static struct { +static const struct { uint8_t class; uint8_t partno; const char *partname; @@ -417,7 +417,7 @@ static struct { {0xFF, 0x00, "Unknown Part"} }; -static char *StellarisClassname[7] = { +static const char *StellarisClassname[7] = { "Sandstorm", "Fury", "Unknown", |