aboutsummaryrefslogtreecommitdiffstats
path: root/atahpt.c
diff options
context:
space:
mode:
authorAnastasia Klimchuk <aklm@chromium.org>2021-05-19 14:32:04 +1000
committerEdward O'Callaghan <quasisec@chromium.org>2021-05-22 01:55:41 +0000
commit7becf1794217a1be316742e23b84770077b2378c (patch)
tree861e4ac76d9a362b8987f7e2a0d70e79f8a84845 /atahpt.c
parent59e344e904c2d5b5346803f9ab11b95c64bf05f0 (diff)
downloadflashrom-7becf1794217a1be316742e23b84770077b2378c.tar.gz
flashrom-7becf1794217a1be316742e23b84770077b2378c.tar.bz2
flashrom-7becf1794217a1be316742e23b84770077b2378c.zip
stlinkv3_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". BUG=b:185191942 TEST=builds Change-Id: Id044661b864b506028720ea809bc524f0640469f Signed-off-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/54042 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Reviewed-by: Miklós Márton <martonmiklosqdev@gmail.com>
Diffstat (limited to 'atahpt.c')
0 files changed, 0 insertions, 0 deletions