From 565f8481c7b71614a05d79ab79af8610d2535a81 Mon Sep 17 00:00:00 2001 From: Andreas Fritiofson Date: Mon, 10 Mar 2014 22:23:07 +0100 Subject: flash: Constify write buffer Change-Id: Ic812098d3ed5a2992c26bb57d08ae350e2c5d5d8 Signed-off-by: Andreas Fritiofson Reviewed-on: http://openocd.zylin.com/2040 Tested-by: jenkins Reviewed-by: Spencer Oliver --- src/flash/nor/str7x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/flash/nor/str7x.c') diff --git a/src/flash/nor/str7x.c b/src/flash/nor/str7x.c index 32c8ebd..515b975 100644 --- a/src/flash/nor/str7x.c +++ b/src/flash/nor/str7x.c @@ -442,7 +442,7 @@ static int str7x_protect(struct flash_bank *bank, int set, int first, int last) return ERROR_OK; } -static int str7x_write_block(struct flash_bank *bank, uint8_t *buffer, +static int str7x_write_block(struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count) { struct str7x_flash_bank *str7x_info = bank->driver_priv; @@ -559,7 +559,7 @@ static int str7x_write_block(struct flash_bank *bank, uint8_t *buffer, return retval; } -static int str7x_write(struct flash_bank *bank, uint8_t *buffer, +static int str7x_write(struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count) { struct target *target = bank->target; -- cgit v1.1