Constify struct flash_driver instances
[fw/openocd] / src / flash / nor / at91sam7.c
index 9de829327ac01cea07b4ae2f0016641d7b565079..15b93a29f4b977342f68691189fcf93bc8f220e8 100644 (file)
@@ -1140,7 +1140,7 @@ static const struct command_registration at91sam7_command_handlers[] = {
        COMMAND_REGISTRATION_DONE
 };
 
-struct flash_driver at91sam7_flash = {
+const struct flash_driver at91sam7_flash = {
        .name = "at91sam7",
        .usage = "gpnvm <bit> <set | clear>",
        .commands = at91sam7_command_handlers,