diff options
Diffstat (limited to 'src/flash/nor/em357.c')
-rw-r--r-- | src/flash/nor/em357.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flash/nor/em357.c b/src/flash/nor/em357.c index 56f44b38..70a5431a 100644 --- a/src/flash/nor/em357.c +++ b/src/flash/nor/em357.c @@ -455,7 +455,7 @@ static int em357_protect(struct flash_bank *bank, int set, int first, int last) return em357_write_options(bank); } -static int em357_write_block(struct flash_bank *bank, uint8_t *buffer, +static int em357_write_block(struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count) { struct target *target = bank->target; @@ -583,7 +583,7 @@ static int em357_write_block(struct flash_bank *bank, uint8_t *buffer, return retval; } -static int em357_write(struct flash_bank *bank, uint8_t *buffer, +static int em357_write(struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count) { struct target *target = bank->target; |