diff options
author | Anastasia Klimchuk <aklm@chromium.org> | 2021-04-12 10:05:57 +1000 |
---|---|---|
committer | Edward O'Callaghan <quasisec@chromium.org> | 2021-04-15 03:13:12 +0000 |
commit | 9dad8c2143e6054b7c198aab5f622318a61bede4 (patch) | |
tree | b4b64ca86ba040093a6159345c8e4a5b5d905828 /it87spi.c | |
parent | 485c335a34b47080e4fd40c50ee36bd70e09e115 (diff) | |
download | flashrom-9dad8c2143e6054b7c198aab5f622318a61bede4.tar.gz flashrom-9dad8c2143e6054b7c198aab5f622318a61bede4.tar.bz2 flashrom-9dad8c2143e6054b7c198aab5f622318a61bede4.zip |
ft2232_spi.c: Refactor singleton states into reentrant pattern
Move global singleton states into a struct and store within
the 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".
TEST=builds
BUG=b:140394053
Change-Id: I67518a58b4f35e0edaf06ac09c9374bdf06db0df
Signed-off-by: Anastasia Klimchuk <aklm@chromium.org>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/52256
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Diffstat (limited to 'it87spi.c')
0 files changed, 0 insertions, 0 deletions