Constify struct flash_driver instances
[fw/openocd] / src / flash / nor / at91sam4l.c
index f3b065f40914573a4cafcbc39ff57dfb9c907287..1c2402ff063ccd550e0af87447db2c834f5ce40f 100644 (file)
@@ -684,7 +684,7 @@ static const struct command_registration at91sam4l_command_handlers[] = {
        COMMAND_REGISTRATION_DONE
 };
 
-struct flash_driver at91sam4l_flash = {
+const struct flash_driver at91sam4l_flash = {
        .name = "at91sam4l",
        .commands = at91sam4l_command_handlers,
        .flash_bank_command = sam4l_flash_bank_command,