X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fflash%2Fnor%2Fstr9xpec.c;h=37d805344c6252c09dba5765a0242d4c5298b4ae;hb=refs%2Fchanges%2F22%2F5022%2F2;hp=29e0977bb435ec1cf4eadd02b94b19ae988995b7;hpb=7690a74b094347ec393c280414a182b7361d7b17;p=openocd.git diff --git a/src/flash/nor/str9xpec.c b/src/flash/nor/str9xpec.c index 29e0977bb4..37d805344c 100644 --- a/src/flash/nor/str9xpec.c +++ b/src/flash/nor/str9xpec.c @@ -1177,9 +1177,10 @@ static const struct command_registration str9xpec_config_command_handlers[] = { }, { .name = "part_id", + .usage = "", .handler = str9xpec_handle_part_id_command, .mode = COMMAND_EXEC, - .help = "print part id of str9xpec flash bank ", + .help = "print part id of str9xpec flash bank", }, COMMAND_REGISTRATION_DONE }; @@ -1195,7 +1196,7 @@ static const struct command_registration str9xpec_command_handlers[] = { COMMAND_REGISTRATION_DONE }; -struct flash_driver str9xpec_flash = { +const struct flash_driver str9xpec_flash = { .name = "str9xpec", .commands = str9xpec_command_handlers, .flash_bank_command = str9xpec_flash_bank_command,