]> git.sur5r.net Git - openocd/blobdiff - src/flash/nor/lpcspifi.c
flash: Constify write buffer
[openocd] / src / flash / nor / lpcspifi.c
index 7566c275f863e3a32209a126fa4cfbf1782f0a31..2f4c6010e1da3fc2a3707dc85d6c8c7fbe59f555 100644 (file)
@@ -581,7 +581,7 @@ static int lpcspifi_protect(struct flash_bank *bank, int set,
        return ERROR_OK;
 }
 
-static int lpcspifi_write(struct flash_bank *bank, uint8_t *buffer,
+static int lpcspifi_write(struct flash_bank *bank, const uint8_t *buffer,
        uint32_t offset, uint32_t count)
 {
        struct target *target = bank->target;