Constify struct flash_driver instances
[fw/openocd] / src / flash / nor / xmc4xxx.c
index d862e857e7067470103e08505dd34a959391b654..c56adb5003dcbf476d20dd33aeca090ce84e0dab 100644 (file)
@@ -1343,7 +1343,7 @@ static const struct command_registration xmc4xxx_command_handlers[] = {
        COMMAND_REGISTRATION_DONE
 };
 
-struct flash_driver xmc4xxx_flash = {
+const struct flash_driver xmc4xxx_flash = {
        .name = "xmc4xxx",
        .commands = xmc4xxx_command_handlers,
        .flash_bank_command = xmc4xxx_flash_bank_command,