diff options
author | Anastasia Klimchuk <aklm@chromium.org> | 2021-05-26 13:23:26 +1000 |
---|---|---|
committer | Edward O'Callaghan <quasisec@chromium.org> | 2021-06-03 05:20:18 +0000 |
commit | 4a7d25903729d2af9fcaf98f233b0bcf337b5106 (patch) | |
tree | b4f15dd7de21a44f5b3c8b3f20f1d5358e7a694d /mec1308.c | |
parent | 6273472a89c28a088313a6303aa3b5b7904f539e (diff) | |
download | flashrom-4a7d25903729d2af9fcaf98f233b0bcf337b5106.tar.gz flashrom-4a7d25903729d2af9fcaf98f233b0bcf337b5106.tar.bz2 flashrom-4a7d25903729d2af9fcaf98f233b0bcf337b5106.zip |
mcp6x_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 `mcp6x` and `mcp` prefixes from spi data
struct members.
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: Ia02c1cb9d36fb7b15bb7e09b769d8969c08c2bd5
Signed-off-by: Anastasia Klimchuk <aklm@chromium.org>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/54994
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Diffstat (limited to 'mec1308.c')
0 files changed, 0 insertions, 0 deletions