diff options
author | Edward O'Callaghan <quasisec@google.com> | 2022-06-17 22:15:02 +1000 |
---|---|---|
committer | Edward O'Callaghan <quasisec@chromium.org> | 2022-08-24 04:11:44 +0000 |
commit | 80f1ea9a791cef897f1597d11e0c37703a868cd7 (patch) | |
tree | 30b92bab7da6a0d9fc7d88e3859d3e7f5ada1863 /platform/endian_little.c | |
parent | 73e28a747256ff3a881d2bc2da744ebdcde90339 (diff) | |
download | flashrom-80f1ea9a791cef897f1597d11e0c37703a868cd7.tar.gz flashrom-80f1ea9a791cef897f1597d11e0c37703a868cd7.tar.bz2 flashrom-80f1ea9a791cef897f1597d11e0c37703a868cd7.zip |
ichspi.c: Pack hwseq_data into opaque.data field
The hwseq_data struct remains to be a stack allocated
instance for now however it is referenced in the opaque_master
data field of the flash ctx. This allows for worker functions
that leverage hwseq_data state to derive state indirectly via
the flash ctx instead of directly upon the global state.
This allows for unblocking further work to finally dispense
with the stack allocation in favour of a heap allocation with
a defined life-time of the driver.
BUG=b:237839418
TEST=builds
Change-Id: I2ad57d496176cf26edcd0ba40154cc6250846e33
Signed-off-by: Edward O'Callaghan <quasisec@google.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/65205
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Anastasia Klimchuk <aklm@chromium.org>
Reviewed-by: Alexander Goncharov <chat@joursoir.net>
Reviewed-by: Thomas Heijligen <src@posteo.de>
Diffstat (limited to 'platform/endian_little.c')
0 files changed, 0 insertions, 0 deletions