aboutsummaryrefslogtreecommitdiff
path: root/src/flash/nor/aduc702x.c
diff options
context:
space:
mode:
authorAndreas Fritiofson <andreas.fritiofson@gmail.com>2014-03-10 22:23:07 +0100
committerSpencer Oliver <spen@spen-soft.co.uk>2014-03-17 12:47:18 +0000
commit565f8481c7b71614a05d79ab79af8610d2535a81 (patch)
treee37bd29bd71c8c83046a4b91536405542e722d84 /src/flash/nor/aduc702x.c
parentcd091c36305d9d2de838c7ba145ee7547e4e1640 (diff)
flash: Constify write buffer
Change-Id: Ic812098d3ed5a2992c26bb57d08ae350e2c5d5d8 Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-on: http://openocd.zylin.com/2040 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src/flash/nor/aduc702x.c')
-rw-r--r--src/flash/nor/aduc702x.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/flash/nor/aduc702x.c b/src/flash/nor/aduc702x.c
index 60ec7d38..88522458 100644
--- a/src/flash/nor/aduc702x.c
+++ b/src/flash/nor/aduc702x.c
@@ -144,7 +144,7 @@ static int aduc702x_protect(struct flash_bank *bank, int set, int first, int las
* Caller should not check for other return values specifically
*/
static int aduc702x_write_block(struct flash_bank *bank,
- uint8_t *buffer,
+ const uint8_t *buffer,
uint32_t offset,
uint32_t count)
{
@@ -285,7 +285,7 @@ static int aduc702x_write_block(struct flash_bank *bank,
/* All-JTAG, single-access method. Very slow. Used only if there is no
* working area available. */
static int aduc702x_write_single(struct flash_bank *bank,
- uint8_t *buffer,
+ const uint8_t *buffer,
uint32_t offset,
uint32_t count)
{
@@ -326,7 +326,7 @@ static int aduc702x_write_single(struct flash_bank *bank,
return ERROR_OK;
}
-static int aduc702x_write(struct flash_bank *bank, uint8_t *buffer, uint32_t offset, uint32_t count)
+static int aduc702x_write(struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count)
{
int retval;