diff options
author | Anastasia Klimchuk <aklm@chromium.org> | 2021-05-31 11:20:01 +1000 |
---|---|---|
committer | Edward O'Callaghan <quasisec@chromium.org> | 2021-06-03 05:19:24 +0000 |
commit | 30815fc3706194117c633393d1ed65941a5afafd (patch) | |
tree | 0057efa0d621d30e4b511a15cbaafc8d65c2da5f /mcp6x_spi.c | |
parent | 0bc0ab932eea6c8a60e90f9abe41c79758d2b8cb (diff) | |
download | flashrom-30815fc3706194117c633393d1ed65941a5afafd.tar.gz flashrom-30815fc3706194117c633393d1ed65941a5afafd.tar.bz2 flashrom-30815fc3706194117c633393d1ed65941a5afafd.zip |
bitbang: Extend register_spi_bitbang_master() API with spi data
This allows the users of register_spi_bitbang_master() API to pass
their spi data into the API, and then the data can go further, into
register_spi_master() API.
BUG=b:185191942
TEST=builds
Change-Id: I13e83ae74dbc3a3e79c84d1463683d360ff47bc0
Signed-off-by: Anastasia Klimchuk <aklm@chromium.org>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/54990
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
Diffstat (limited to 'mcp6x_spi.c')
-rw-r--r-- | mcp6x_spi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mcp6x_spi.c b/mcp6x_spi.c index b53d07bd..543142bb 100644 --- a/mcp6x_spi.c +++ b/mcp6x_spi.c @@ -151,7 +151,7 @@ int mcp6x_spi_init(int want_spi) (status >> MCP6X_SPI_GRANT) & 0x1); mcp_gpiostate = status & 0xff; - if (register_spi_bitbang_master(&bitbang_spi_master_mcp6x)) { + if (register_spi_bitbang_master(&bitbang_spi_master_mcp6x, NULL)) { /* This should never happen. */ msg_perr("MCP6X bitbang SPI master init failed!\n"); return 1; |