flash: constify driver data structures

Change-Id: Ia5c3de48119f036e1d7a41be62a672a6fb37e59b
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/2293
Tested-by: jenkins
This commit is contained in:
Spencer Oliver
2014-09-11 22:08:34 +01:00
parent 03410e92da
commit 36bc83b174
3 changed files with 7 additions and 6 deletions

View File

@@ -920,8 +920,9 @@ static int nrf51_info(struct flash_bank *bank, char *buf, int buf_size)
if (res != ERROR_OK)
return res;
struct {
uint32_t address, value;
static struct {
const uint32_t address;
uint32_t value;
} ficr[] = {
{ .address = NRF51_FICR_CODEPAGESIZE },
{ .address = NRF51_FICR_CODESIZE },