aboutsummaryrefslogtreecommitdiff
path: root/src/flash/nor/driver.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/flash/nor/driver.h')
-rw-r--r--src/flash/nor/driver.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/nor/driver.h b/src/flash/nor/driver.h
index 4e172074..8f2e1cc2 100644
--- a/src/flash/nor/driver.h
+++ b/src/flash/nor/driver.h
@@ -137,7 +137,7 @@ struct flash_driver {
* @returns ERROR_OK if successful; otherwise, an error code.
*/
int (*write)(struct flash_bank *bank,
- uint8_t *buffer, uint32_t offset, uint32_t count);
+ const uint8_t *buffer, uint32_t offset, uint32_t count);
/**
* Read data from the flash. Note CPU address will be