]> git.sur5r.net Git - openocd/blobdiff - src/flash/nor/str9xpec.c
flash: Constify write buffer
[openocd] / src / flash / nor / str9xpec.c
index e08495da05494b012fda61836b1178d33a2d111a..f0af53a4154801647a2b15d86708ce90490cdd0b 100644 (file)
@@ -565,7 +565,7 @@ static int str9xpec_set_address(struct flash_bank *bank, uint8_t sector)
        return ERROR_OK;
 }
 
-static int str9xpec_write(struct flash_bank *bank, uint8_t *buffer,
+static int str9xpec_write(struct flash_bank *bank, const uint8_t *buffer,
                uint32_t offset, uint32_t count)
 {
        struct str9xpec_flash_controller *str9xpec_info = bank->driver_priv;