summaryrefslogtreecommitdiffstats
path: root/flashrom.c
diff options
context:
space:
mode:
Diffstat (limited to 'flashrom.c')
-rw-r--r--flashrom.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/flashrom.c b/flashrom.c
index 35fdc7da7..5a6f4e661 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -1021,14 +1021,12 @@ out:
* then this will write files using data from the corresponding region in the
* supplied buffer.
*
- * @param flashctx Flash context to be used.
+ * @param layout The layout to be used.
* @param buf Chip-sized buffer to read data from
* @return 0 on success
*/
-int write_buf_to_include_args(const struct flashctx *const flash,
- unsigned char *buf)
+int write_buf_to_include_args(const struct flashrom_layout *const layout, unsigned char *buf)
{
- const struct flashrom_layout *const layout = get_layout(flash);
const struct romentry *entry = NULL;
while ((entry = layout_next_included(layout, entry))) {