David Hendricks has submitted this change and it was merged. ( https://review.coreboot.org/21338 )
Change subject: ich_descriptors: Use MAX_NUM_FLREGS for entries[]
......................................................................
ich_descriptors: Use MAX_NUM_FLREGS for entries[]
5 regions made sense in 2013 when this bit of code was originally
written. MAX_NUM_FLREGS is now used to keep track of the max number of
flash regions and is >5 since Sunrise Point.
Change-Id: Idb559e618369fecf930724a7c1c84765247f3e38
Signed-off-by: David Hendricks <dhendricks(a)fb.com>
Reviewed-on: https://review.coreboot.org/21338
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
Reviewed-by: Nico Huber <nico.h(a)gmx.de>
---
M ich_descriptors.h
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
build bot (Jenkins): Verified
Nico Huber: Looks good to me, approved
diff --git a/ich_descriptors.h b/ich_descriptors.h
index 9a16031..db4d28f 100644
--- a/ich_descriptors.h
+++ b/ich_descriptors.h
@@ -568,7 +568,7 @@
struct ich_layout {
struct flashrom_layout base;
- struct romentry entries[5];
+ struct romentry entries[MAX_NUM_FLREGS];
};
ssize_t ich_number_of_regions(enum ich_chipset cs, const struct ich_desc_content *content);
--
To view, visit https://review.coreboot.org/21338
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: staging
Gerrit-MessageType: merged
Gerrit-Change-Id: Idb559e618369fecf930724a7c1c84765247f3e38
Gerrit-Change-Number: 21338
Gerrit-PatchSet: 4
Gerrit-Owner: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Reviewer: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Hello build bot (Jenkins), Nico Huber,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/21338
to look at the new patch set (#2).
Change subject: ich_descriptors: Use MAX_NUM_FLREGS for entries[]
......................................................................
ich_descriptors: Use MAX_NUM_FLREGS for entries[]
5 regions made sense in 2013 when this bit of code was originally
written. MAX_NUM_FLREGS is now used to keep track of the max number of
flash regions and is >5 since Sunrise Point.
Change-Id: Idb559e618369fecf930724a7c1c84765247f3e38
Signed-off-by: David Hendricks <dhendricks(a)fb.com>
---
M ich_descriptors.h
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/38/21338/2
--
To view, visit https://review.coreboot.org/21338
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: staging
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Idb559e618369fecf930724a7c1c84765247f3e38
Gerrit-Change-Number: 21338
Gerrit-PatchSet: 2
Gerrit-Owner: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
David Hendricks has uploaded this change for review. ( https://review.coreboot.org/21338
Change subject: ich_descriptors: Use MAX_NUM_FLREGS for entries[]
......................................................................
ich_descriptors: Use MAX_NUM_FLREGS for entries[]
5 regions made sense in 2013 when this bit of code was originally
written. MAX_NUM_FLREGS is now used to keep track of the max number of
flash regions and is larger since Sunrise Point.
Change-Id: Idb559e618369fecf930724a7c1c84765247f3e38
Signed-off-by: David Hendricks <dhendricks(a)fb.com>
---
M ich_descriptors.h
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/flashrom refs/changes/38/21338/1
diff --git a/ich_descriptors.h b/ich_descriptors.h
index 9a16031..db4d28f 100644
--- a/ich_descriptors.h
+++ b/ich_descriptors.h
@@ -568,7 +568,7 @@
struct ich_layout {
struct flashrom_layout base;
- struct romentry entries[5];
+ struct romentry entries[MAX_NUM_FLREGS];
};
ssize_t ich_number_of_regions(enum ich_chipset cs, const struct ich_desc_content *content);
--
To view, visit https://review.coreboot.org/21338
To unsubscribe, visit https://review.coreboot.org/settings
Gerrit-Project: flashrom
Gerrit-Branch: staging
Gerrit-MessageType: newchange
Gerrit-Change-Id: Idb559e618369fecf930724a7c1c84765247f3e38
Gerrit-Change-Number: 21338
Gerrit-PatchSet: 1
Gerrit-Owner: David Hendricks <david.hendricks(a)gmail.com>