Edward O'Callaghan has uploaded this change for review.
flashrom.c: Use get_default_layout() consistently
Change-Id: Ia1aa38029d5db3967f2705686bb5f45ca4a9a4e4
Signed-off-by: Edward O'Callaghan <quasisec@google.com>
---
M flashrom.c
1 file changed, 13 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/84/68284/1
diff --git a/flashrom.c b/flashrom.c
index 088d804..3106ab3 100644
--- a/flashrom.c
+++ b/flashrom.c
@@ -850,10 +850,10 @@
return -1;
/* Fill default layout covering the whole chip. */
- if (flashrom_layout_new(&flash->default_layout) ||
- flashrom_layout_add_region(flash->default_layout,
+ if (flashrom_layout_new(&get_default_layout(flash)) ||
+ flashrom_layout_add_region(get_default_layout(flash),
0, flash->chip->total_size * 1024 - 1, "complete flash") ||
- flashrom_layout_include_region(flash->default_layout, "complete flash"))
+ flashrom_layout_include_region(get_default_layout(flash), "complete flash"))
return -1;
tmp = flashbuses_to_text(flash->chip->bustype);
To view, visit change 68284. To unsubscribe, or for help writing mail filters, visit settings.