diff options
author | Anastasia Klimchuk <aklm@chromium.org> | 2021-04-30 14:10:04 +1000 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2021-05-12 23:18:11 +0000 |
commit | 4a9a66f7c8eaa21b8381ca3e336c621b2c3ef6a2 (patch) | |
tree | 21748443d75b756dd3a82fd48068a0944d3bd462 /util/git-hooks/applypatch-msg | |
parent | e4261e342531d9a23a85d34169cb658b8e1ea050 (diff) | |
download | flashrom-4a9a66f7c8eaa21b8381ca3e336c621b2c3ef6a2.tar.gz flashrom-4a9a66f7c8eaa21b8381ca3e336c621b2c3ef6a2.tar.bz2 flashrom-4a9a66f7c8eaa21b8381ca3e336c621b2c3ef6a2.zip |
pickit2_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:185191942
Change-Id: Ibacc4738bee02c371c41583d321e0337128ad18a
Signed-off-by: Anastasia Klimchuk <aklm@chromium.org>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/52774
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'util/git-hooks/applypatch-msg')
0 files changed, 0 insertions, 0 deletions