summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--flashrom.c2
-rw-r--r--libflashrom.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/flashrom.c b/flashrom.c
index 503a19904..838dfd059 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -2294,7 +2294,7 @@ static void combine_image_by_layout(const struct flashctx *const flashctx,
* containing included regions will be touched.
*
* @param flashctx The context of the flash chip.
- * @param buffer Source buffer to read image from.
+ * @param buffer Source buffer to read image from (may be altered for full verification).
* @param buffer_len Size of source buffer in bytes.
* @return 0 on success,
* 4 if buffer_len doesn't match the size of the flash chip,
diff --git a/libflashrom.h b/libflashrom.h
index 1937194fc..09a88c412 100644
--- a/libflashrom.h
+++ b/libflashrom.h
@@ -59,7 +59,7 @@ void flashrom_flag_set(struct flashrom_flashctx *, enum flashrom_flag, bool valu
bool flashrom_flag_get(const struct flashrom_flashctx *, enum flashrom_flag);
int flashrom_image_read(struct flashrom_flashctx *, void *buffer, size_t buffer_len);
-int flashrom_image_write(struct flashrom_flashctx *, const void *buffer, size_t buffer_len);
+int flashrom_image_write(struct flashrom_flashctx *, void *buffer, size_t buffer_len);
int flashrom_image_verify(struct flashrom_flashctx *, const void *buffer, size_t buffer_len);
struct flashrom_layout;