aboutsummaryrefslogtreecommitdiffstats
path: root/ch341a_spi.c
diff options
context:
space:
mode:
authorAnastasia Klimchuk <aklm@chromium.org>2021-05-06 07:47:04 +1000
committerNico Huber <nico.h@gmx.de>2021-06-20 09:12:31 +0000
commit048bbe0323793e382365815e499f4be0e8f05cf3 (patch)
tree90a037981a6d8ed649eb6eba34d19dd1efd786f4 /ch341a_spi.c
parent751afa88a7f22487069665c5d206ae490f158231 (diff)
downloadflashrom-048bbe0323793e382365815e499f4be0e8f05cf3.tar.gz
flashrom-048bbe0323793e382365815e499f4be0e8f05cf3.tar.bz2
flashrom-048bbe0323793e382365815e499f4be0e8f05cf3.zip
buspirate_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: I418bbfff15fb126b042fbc9be09dbf59f4d243b8 Signed-off-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/52958 Reviewed-by: Edward O'Callaghan <quasisec@chromium.org> Reviewed-by: Nico Huber <nico.h@gmx.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'ch341a_spi.c')
0 files changed, 0 insertions, 0 deletions