ichspi.c: Make ich_hwseq_get_flash_id() parametric on ich_generation
Make the get_flash_id() function pure by taking the ich_generation value
as a function parameter over a global variable.
BUG=none
BRANCH=none
TEST=none
Signed-off-by: Edward O'Callaghan <quasisec@google.com>
Change-Id: I317fafec60e96d0753e86c053ef310b2a70a144b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/flashrom/+/2534427
Tested-by: Edward O'Callaghan <quasisec@chromium.org>
Auto-Submit: Edward O'Callaghan <quasisec@chromium.org>
Commit-Queue: Sam McNally <sammc@chromium.org>
Reviewed-by: Sam McNally <sammc@chromium.org>
1 file changed