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 --- programmer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'programmer.h') diff --git a/programmer.h b/programmer.h index 790fcc844..1874612dd 100644 --- a/programmer.h +++ b/programmer.h @@ -542,7 +542,7 @@ int pony_spi_init(void); #endif /* bitbang_spi.c */ -int register_spi_bitbang_master(const struct bitbang_spi_master *master); +int register_spi_bitbang_master(const struct bitbang_spi_master *master, void *spi_data); /* buspirate_spi.c */ #if CONFIG_BUSPIRATE_SPI == 1 -- cgit v1.2.3