Skip to content

Commit a25257f

Browse files
committed
drivers: spi: sifive: Migrate spi_context_{complete,lock} usage
This commit updates the SiFive SPI driver to reflect the `spi_context_complete` and `spi_context_lock` function signature changes introduced in the commit 4c20403. Signed-off-by: Stephanos Ioannidis <[email protected]>
1 parent da570f8 commit a25257f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/spi/spi_sifive.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ static void spi_sifive_xfer(const struct device *dev, const bool hw_cs_control)
167167
sys_write32(SF_CSMODE_OFF, SPI_REG(dev, REG_CSMODE));
168168
}
169169

170-
spi_context_complete(ctx, 0);
170+
spi_context_complete(ctx, dev, 0);
171171
}
172172

173173
/* API Functions */
@@ -207,7 +207,7 @@ static int spi_sifive_transceive(const struct device *dev,
207207
bool hw_cs_control = false;
208208

209209
/* Lock the SPI Context */
210-
spi_context_lock(&SPI_DATA(dev)->ctx, false, NULL, config);
210+
spi_context_lock(&SPI_DATA(dev)->ctx, false, NULL, NULL, config);
211211

212212
/* Configure the SPI bus */
213213
SPI_DATA(dev)->ctx.config = config;

0 commit comments

Comments
 (0)