aboutsummaryrefslogtreecommitdiffstats
path: root/os.h
diff options
context:
space:
mode:
authorAnastasia Klimchuk <aklm@chromium.org>2021-04-21 12:21:49 +1000
committerAngel Pons <th3fanbus@gmail.com>2021-04-22 11:03:02 +0000
commit3c97998aea8bced868fc73dfed7561fdf3382466 (patch)
treee2cf0ae47348d123a1f8d2d823042f47d47c4d57 /os.h
parent87718aadb42b499ad7473528e6bb4cd522f3237d (diff)
downloadflashrom-3c97998aea8bced868fc73dfed7561fdf3382466.tar.gz
flashrom-3c97998aea8bced868fc73dfed7561fdf3382466.tar.bz2
flashrom-3c97998aea8bced868fc73dfed7561fdf3382466.zip
jlink_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: If13ad0c979ccf62ca4ccbd479d471c657895ef59 Signed-off-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/52560 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Miklós Márton <martonmiklosqdev@gmail.com>
Diffstat (limited to 'os.h')
0 files changed, 0 insertions, 0 deletions