]> git.sur5r.net Git - openocd/blobdiff - src/flash/nor/nuc1x.c
flash: Constify write buffer
[openocd] / src / flash / nor / nuc1x.c
index 6ca858ec938080ee5628dfcfac34aa40d8872f79..179302e0f4eac9f95868a448918dc5765e551498 100644 (file)
@@ -378,7 +378,7 @@ static int nuc1x_erase(struct flash_bank *bank, int first, int last)
 }
 
 /* The write routine stub. */
-static int nuc1x_write(struct flash_bank *bank, uint8_t *buffer,
+static int nuc1x_write(struct flash_bank *bank, const uint8_t *buffer,
                uint32_t offset, uint32_t count)
 {
        struct target *target = bank->target;