]> git.sur5r.net Git - openocd/blobdiff - src/flash/nor/tms470.c
flash: Constify write buffer
[openocd] / src / flash / nor / tms470.c
index 3851504d67f4ec6c93c23ca57d1b03dde3ac3c14..86858a84ed9ffea3a9e11869b8eec827ec9b477e 100644 (file)
@@ -890,7 +890,7 @@ static int tms470_protect(struct flash_bank *bank, int set, int first, int last)
 
 /* ---------------------------------------------------------------------- */
 
-static int tms470_write(struct flash_bank *bank, uint8_t *buffer, uint32_t offset, uint32_t count)
+static int tms470_write(struct flash_bank *bank, const uint8_t *buffer, uint32_t offset, uint32_t count)
 {
        struct target *target = bank->target;
        uint32_t glbctrl, fmbac2, orig_fmregopt, fmbsea, fmbseb, fmmaxpp, fmmstat;