From 30815fc3706194117c633393d1ed65941a5afafd Mon Sep 17 00:00:00 2001 From: Anastasia Klimchuk Date: Mon, 31 May 2021 11:20:01 +1000 Subject: 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 Reviewed-on: https://review.coreboot.org/c/flashrom/+/54990 Tested-by: build bot (Jenkins) Reviewed-by: Edward O'Callaghan --- developerbox_spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'developerbox_spi.c') diff --git a/developerbox_spi.c b/developerbox_spi.c index 4ff2fb60..4ccfaaaf 100644 --- a/developerbox_spi.c +++ b/developerbox_spi.c @@ -158,7 +158,7 @@ int developerbox_spi_init(void) if (register_shutdown(developerbox_spi_shutdown, NULL)) goto err_exit; - if (register_spi_bitbang_master(&bitbang_spi_master_cp210x)) + if (register_spi_bitbang_master(&bitbang_spi_master_cp210x, NULL)) goto err_exit; return 0; -- cgit v1.2.3