Edward O'Callaghan submitted this change.

View Change

Approvals: build bot (Jenkins): Verified Edward O'Callaghan: Looks good to me, approved
bitbang: Make use of new register_spi_master() API

BUG=b:185191942
TEST=builds

Change-Id: I8f251910cec728a78b79c17de355bcf0c736c69a
Signed-off-by: Anastasia Klimchuk <aklm@chromium.org>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/55087
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Edward O'Callaghan <quasisec@chromium.org>
---
M bitbang_spi.c
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/bitbang_spi.c b/bitbang_spi.c
index 85c867e..e70d883 100644
--- a/bitbang_spi.c
+++ b/bitbang_spi.c
@@ -161,8 +161,7 @@

struct bitbang_spi_master_data *data = calloc(1, sizeof(struct bitbang_spi_master_data));
data->master = master;
- mst.data = data;
- register_spi_master(&mst, NULL);
+ register_spi_master(&mst, data);
register_shutdown(bitbang_spi_shutdown, data);

/* Only mess with the bus if we're sure nobody else uses it. */

To view, visit change 55087. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: flashrom
Gerrit-Branch: master
Gerrit-Change-Id: I8f251910cec728a78b79c17de355bcf0c736c69a
Gerrit-Change-Number: 55087
Gerrit-PatchSet: 2
Gerrit-Owner: Anastasia Klimchuk <aklm@chromium.org>
Gerrit-Reviewer: Angel Pons <th3fanbus@gmail.com>
Gerrit-Reviewer: Edward O'Callaghan <quasisec@chromium.org>
Gerrit-Reviewer: Nico Huber <nico.h@gmx.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org>
Gerrit-MessageType: merged