diff options
Diffstat (limited to 'src/flash/nor/faux.c')
-rw-r--r-- | src/flash/nor/faux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nor/faux.c b/src/flash/nor/faux.c index 8e51b8e5..1fd1da21 100644 --- a/src/flash/nor/faux.c +++ b/src/flash/nor/faux.c @@ -93,7 +93,7 @@ static int faux_protect(struct flash_bank *bank, int set, int first, int last) return ERROR_OK; } -static int faux_write(struct flash_bank *bank, uint8_t *buffer, uint32_t offset, uint32_t count) +static int faux_write(struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count) { struct faux_flash_bank *info = bank->driver_priv; memcpy(info->memory + offset, buffer, count); |