Constify struct flash_driver instances
[fw/openocd] / src / flash / nor / max32xxx.c
index ca037de4d5389e924270b6a834c83662af4eb0dd..12e3db9403530e942a7ab1872bf9e29106345ccf 100644 (file)
@@ -981,7 +981,7 @@ static const struct command_registration max32xxx_command_handlers[] = {
        COMMAND_REGISTRATION_DONE
 };
 
-struct flash_driver max32xxx_flash = {
+const struct flash_driver max32xxx_flash = {
        .name = "max32xxx",
        .commands = max32xxx_command_handlers,
        .flash_bank_command = max32xxx_flash_bank_command,