X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Fflash%2Fnor%2Focl.c;h=c547d9a1746c528ff4c53604b074ea160535d989;hb=513436a17accbe5494f763055124be594bef0a45;hp=4e7198a736fe2c6ec9ecd50eea994ae1b1b3dd80;hpb=08d4411b59dd8bd0e7d8009003b71d23acbf6eee;p=openocd.git diff --git a/src/flash/nor/ocl.c b/src/flash/nor/ocl.c index 4e7198a736..c547d9a174 100644 --- a/src/flash/nor/ocl.c +++ b/src/flash/nor/ocl.c @@ -118,7 +118,7 @@ static int ocl_protect(struct flash_bank *bank, int set, int first, int last) return ERROR_OK; } -static int ocl_write(struct flash_bank *bank, uint8_t *buffer, uint32_t offset, uint32_t count) +static int ocl_write(struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count) { struct ocl_priv *ocl = bank->driver_priv; int retval; @@ -321,11 +321,6 @@ static int ocl_probe(struct flash_bank *bank) return ERROR_OK; } -static int ocl_info(struct flash_bank *bank, char *buf, int buf_size) -{ - return ERROR_OK; -} - static int ocl_auto_probe(struct flash_bank *bank) { struct ocl_priv *ocl = bank->driver_priv; @@ -346,6 +341,5 @@ struct flash_driver ocl_flash = { .probe = ocl_probe, .erase_check = ocl_erase_check, .protect_check = ocl_protect_check, - .info = ocl_info, .auto_probe = ocl_auto_probe, };