summaryrefslogtreecommitdiffstats
path: root/flashrom.c
diff options
context:
space:
mode:
authorEdward O'Callaghan <quasisec@chromium.org>2019-10-30 00:38:16 +1100
committerEdward O'Callaghan <quasisec@chromium.org>2020-11-25 05:30:21 +0000
commit0386aa1781e2bb1d10807b518b013ddf5d3ca02d (patch)
treeb29b133a21f935e59edd2eb4a7855c6e9863c8b0 /flashrom.c
parent3d300cb797464722ac3c4a2164f325727d635231 (diff)
downloadflashrom-0386aa1781e2bb1d10807b518b013ddf5d3ca02d.tar.gz
flashrom-0386aa1781e2bb1d10807b518b013ddf5d3ca02d.tar.bz2
flashrom-0386aa1781e2bb1d10807b518b013ddf5d3ca02d.zip
sb600spi.c: Remove 'amd_gen' out of global state
Have 'determine_generation()' explicitly return 'amd_gen' and then pass the state into what requires it, thus making the code more pure, easier to read and more unit-testable. Change-Id: I99fbad9486123c6b921eab83756de54a53ddfa7a Signed-off-by: Edward O'Callaghan <quasisec@chromium.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/36432 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Sam McNally <sammc@google.com>
Diffstat (limited to 'flashrom.c')
0 files changed, 0 insertions, 0 deletions