aboutsummaryrefslogtreecommitdiff
path: root/src/flash/nor/ocl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/flash/nor/ocl.c')
-rw-r--r--src/flash/nor/ocl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nor/ocl.c b/src/flash/nor/ocl.c
index 6b297b0..c547d9a 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;