diff options
author | Anastasia Klimchuk <aklm@chromium.org> | 2021-05-27 11:12:44 +1000 |
---|---|---|
committer | Edward O'Callaghan <quasisec@chromium.org> | 2021-06-03 05:21:10 +0000 |
commit | 38c133438c98d70bcd46a6289bc4120e22606cf2 (patch) | |
tree | 95458eda0c292f20910fe5ebf201bf34748a0e26 /edi.h | |
parent | f7b0674266874e40cc19984e7b556154ac9093c1 (diff) | |
download | flashrom-38c133438c98d70bcd46a6289bc4120e22606cf2.tar.gz flashrom-38c133438c98d70bcd46a6289bc4120e22606cf2.tar.bz2 flashrom-38c133438c98d70bcd46a6289bc4120e22606cf2.zip |
rayer_spi.c: Refactor singleton states into reentrant pattern
Move global singleton states into a struct and store within
the bitbang_spi_master data field for the life-time of the driver.
This is one of the steps on the way to move spi_master data
memory management behind the initialisation API, for more
context see other patches under the same topic "register_master_api".
BUG=b:185191942
TEST=builds
Change-Id: Idde4557d89f80fe5d5884ce6c8cdf538ad2e5d68
Signed-off-by: Anastasia Klimchuk <aklm@chromium.org>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/54998
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'edi.h')
0 files changed, 0 insertions, 0 deletions