Constify struct flash_driver instances
[fw/openocd] / src / flash / nor / stm32f1x.c
index cd060daaef81cfb5f8828bb0a2c3bbee83308715..d5d59c6113731a8d4ef9f540962e787d69c5e766 100644 (file)
@@ -1570,7 +1570,7 @@ static const struct command_registration stm32x_command_handlers[] = {
        COMMAND_REGISTRATION_DONE
 };
 
-struct flash_driver stm32f1x_flash = {
+const struct flash_driver stm32f1x_flash = {
        .name = "stm32f1x",
        .commands = stm32x_command_handlers,
        .flash_bank_command = stm32x_flash_bank_command,