Constify struct flash_driver instances
[fw/openocd] / src / flash / nor / xmc1xxx.c
index 262300cc81d0cf0fd140e8ee9b3b7d48ea31c0d2..75897719077ac2eef68e149124fefc60c79548fa 100644 (file)
@@ -534,7 +534,7 @@ static const struct command_registration xmc1xxx_command_handlers[] = {
        COMMAND_REGISTRATION_DONE
 };
 
-struct flash_driver xmc1xxx_flash = {
+const struct flash_driver xmc1xxx_flash = {
        .name = "xmc1xxx",
        .commands = xmc1xxx_command_handlers,
        .flash_bank_command = xmc1xxx_flash_bank_command,