]> git.sur5r.net Git - openocd/blobdiff - src/flash/nor/fm3.c
flash: Constify write buffer
[openocd] / src / flash / nor / fm3.c
index 1859912918d2bb86e951200776e1fe5e88effb34..d4bd5b9c120cf8ccb9ca0f1ef27daee49541f4a0 100644 (file)
@@ -347,7 +347,7 @@ static int fm3_erase(struct flash_bank *bank, int first, int last)
        return retval;
 }
 
-static int fm3_write_block(struct flash_bank *bank, uint8_t *buffer,
+static int fm3_write_block(struct flash_bank *bank, const uint8_t *buffer,
                uint32_t offset, uint32_t count)
 {
        struct fm3_flash_bank *fm3_info = bank->driver_priv;