Constify struct flash_driver instances
[openocd.git] / src / flash / nor / virtual.c
index 217f7a4..fa51537 100644 (file)
@@ -224,7 +224,7 @@ static int virtual_flash_read(struct flash_bank *bank,
        return ERROR_OK;
 }
 
-struct flash_driver virtual_flash = {
+const struct flash_driver virtual_flash = {
        .name = "virtual",
        .flash_bank_command = virtual_flash_bank_command,
        .erase = virtual_erase,