Constify struct flash_driver instances
[fw/openocd] / src / flash / nor / bluenrg-x.c
index f1b2062019edf1a550dca1a7a65b160f44e2b2f4..f6a249273afe9660aff67b34c0b3915092f55b94 100644 (file)
@@ -539,7 +539,7 @@ static int bluenrgx_get_info(struct flash_bank *bank, char *buf, int buf_size)
        return ERROR_OK;
 }
 
-struct flash_driver bluenrgx_flash = {
+const struct flash_driver bluenrgx_flash = {
        .name = "bluenrg-x",
        .flash_bank_command = bluenrgx_flash_bank_command,
        .erase = bluenrgx_erase,