Constify struct flash_driver instances
[fw/openocd] / src / flash / nor / stm32lx.c
index 814df8f6faacbe749fdef9da0b78b9f735ed6d9e..27780103ee76013ac051356b4796661a7d2ad0b8 100644 (file)
@@ -944,7 +944,7 @@ static const struct command_registration stm32lx_command_handlers[] = {
        COMMAND_REGISTRATION_DONE
 };
 
-struct flash_driver stm32lx_flash = {
+const struct flash_driver stm32lx_flash = {
                .name = "stm32lx",
                .commands = stm32lx_command_handlers,
                .flash_bank_command = stm32lx_flash_bank_command,