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:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user