Constify struct flash_driver instances
[fw/openocd] / src / flash / nor / ath79.c
index af2112a9e50213e670cef2e530a6e10fa0f0d7d3..c551f27223512301ae8a8a5b7cddb6bff2247d82 100644 (file)
@@ -895,7 +895,7 @@ static int get_ath79_info(struct flash_bank *bank, char *buf, int buf_size)
        return ERROR_OK;
 }
 
-struct flash_driver ath79_flash = {
+const struct flash_driver ath79_flash = {
        .name = "ath79",
        .flash_bank_command = ath79_flash_bank_command,
        .erase = ath79_erase,