diff options
author | Anastasia Klimchuk <aklm@chromium.org> | 2021-05-27 09:46:23 +1000 |
---|---|---|
committer | Edward O'Callaghan <quasisec@chromium.org> | 2021-06-03 05:20:56 +0000 |
commit | f7b0674266874e40cc19984e7b556154ac9093c1 (patch) | |
tree | 9e588dfe6d319ad00d11a6adab20978fbaa9f7a7 /edi.h | |
parent | ab93e7038741624aea3c14da6d60f7fc50a32121 (diff) | |
download | flashrom-f7b0674266874e40cc19984e7b556154ac9093c1.tar.gz flashrom-f7b0674266874e40cc19984e7b556154ac9093c1.tar.bz2 flashrom-f7b0674266874e40cc19984e7b556154ac9093c1.zip |
pony_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: Icf1125dadcdaa287ebe3c07ca95adb770bb19412
Signed-off-by: Anastasia Klimchuk <aklm@chromium.org>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/54997
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Diffstat (limited to 'edi.h')
0 files changed, 0 insertions, 0 deletions