diff options
author | Anastasia Klimchuk <aklm@chromium.org> | 2021-04-13 11:26:25 +1000 |
---|---|---|
committer | Edward O'Callaghan <quasisec@chromium.org> | 2021-04-18 12:16:29 +0000 |
commit | 1b13f25ef2dd1382ae7e2525cdac3fc8d11c0beb (patch) | |
tree | 7cba7c535c93e9ac31fa37f57cc19285ab51f104 /it8212.c | |
parent | 6b5736c991863789ee2b516d0aab238355f781fe (diff) | |
download | flashrom-1b13f25ef2dd1382ae7e2525cdac3fc8d11c0beb.tar.gz flashrom-1b13f25ef2dd1382ae7e2525cdac3fc8d11c0beb.tar.bz2 flashrom-1b13f25ef2dd1382ae7e2525cdac3fc8d11c0beb.zip |
linux_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: I93408c2ca846fca6a1c7eda7180862c51bd48078
Signed-off-by: Anastasia Klimchuk <aklm@chromium.org>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/52285
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Diffstat (limited to 'it8212.c')
0 files changed, 0 insertions, 0 deletions