flash/nor/stm32l4x : add structure containers to hold devices' information
[fw/openocd] / src / flash / nor / str7x.c
index 11179f520d04e075c3eebde3ff0efe8e642f0976..eaef1970e60aecd814e954c4c6e0328a614e4b77 100644 (file)
@@ -799,7 +799,7 @@ static const struct command_registration str7x_command_handlers[] = {
        COMMAND_REGISTRATION_DONE
 };
 
-struct flash_driver str7x_flash = {
+const struct flash_driver str7x_flash = {
        .name = "str7x",
        .commands = str7x_command_handlers,
        .flash_bank_command = str7x_flash_bank_command,
@@ -812,4 +812,5 @@ struct flash_driver str7x_flash = {
        .erase_check = default_flash_blank_check,
        .protect_check = str7x_protect_check,
        .info = get_str7x_info,
+       .free_driver_priv = default_flash_free_driver_priv,
 };