summaryrefslogtreecommitdiffstats
path: root/writeprotect.c
diff options
context:
space:
mode:
authorAnastasia Klimchuk <aklm@chromium.org>2021-05-27 08:23:24 +1000
committerEdward O'Callaghan <quasisec@chromium.org>2021-06-03 05:20:33 +0000
commit0d149d9d5b0a888d668015600145ccd953f6388f (patch)
tree0f8033f08b76fef8edf32517aef136bb5fdf8ced /writeprotect.c
parent4a7d25903729d2af9fcaf98f233b0bcf337b5106 (diff)
downloadflashrom-0d149d9d5b0a888d668015600145ccd953f6388f.tar.gz
flashrom-0d149d9d5b0a888d668015600145ccd953f6388f.tar.bz2
flashrom-0d149d9d5b0a888d668015600145ccd953f6388f.zip
nicintel_spi.c: Refactor singleton states into reentrant pattern
Move global singleton states into a struct and store within the bitbang_spi_master data field for the life-time of the driver. This patch also drops `nicintel` prefix from spi master struct member. 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: I385d3ced19dfe6453ccc4128a7b792c2dce3a449 Signed-off-by: Anastasia Klimchuk <aklm@chromium.org> Reviewed-on: https://review.coreboot.org/c/flashrom/+/54995 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Diffstat (limited to 'writeprotect.c')
0 files changed, 0 insertions, 0 deletions