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 229a47441..35fdc7da7 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -926,14 +926,12 @@ out:
* then this will read file data into 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 write data to
* @return 0 on success
*/
-int read_buf_from_include_args(const struct flashctx *const flash,
- unsigned char *buf)
+int read_buf_from_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;
/*