Constify struct flash_driver instances
[fw/openocd] / src / flash / nor / stm32f2x.c
index 63c83479d372e716ca491375fb42004e48fc94d0..23f0030851f3066c8ec88faaf8aa736c20050893 100644 (file)
@@ -1792,7 +1792,7 @@ static const struct command_registration stm32x_command_handlers[] = {
        COMMAND_REGISTRATION_DONE
 };
 
-struct flash_driver stm32f2x_flash = {
+const struct flash_driver stm32f2x_flash = {
        .name = "stm32f2x",
        .commands = stm32x_command_handlers,
        .flash_bank_command = stm32x_flash_bank_command,