From e9b29a6f830e6663495960078de8bd06c66726b9 Mon Sep 17 00:00:00 2001 From: Stephanos Ioannidis Date: Thu, 1 Sep 2022 00:09:38 +0900 Subject: [PATCH] drivers: spi: psoc6: Fix spi_psoc6_transceive calls The commit 4c20403629df1ae6a58d37a7a5bd73d4698cc11a updated the `spi_psoc6_transceive` function signature but forgot to update its usages. This commit updates the `spi_psoc6_transceive` function invocations to properly provide the callback and user data parameters. Signed-off-by: Stephanos Ioannidis --- drivers/spi/spi_psoc6.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/spi/spi_psoc6.c b/drivers/spi/spi_psoc6.c index 287e6e9314f..7b6a30d3a65 100644 --- a/drivers/spi/spi_psoc6.c +++ b/drivers/spi/spi_psoc6.c @@ -345,7 +345,7 @@ static int spi_psoc6_transceive_sync(const struct device *dev, const struct spi_buf_set *rx_bufs) { return spi_psoc6_transceive(dev, spi_cfg, tx_bufs, - rx_bufs, false, NULL); + rx_bufs, false, NULL, NULL); } #ifdef CONFIG_SPI_ASYNC @@ -353,10 +353,11 @@ static int spi_psoc6_transceive_async(const struct device *dev, const struct spi_config *spi_cfg, const struct spi_buf_set *tx_bufs, const struct spi_buf_set *rx_bufs, - struct k_poll_signal *async) + spi_callback_t cb, + void *userdata) { return spi_psoc6_transceive(dev, spi_cfg, tx_bufs, - rx_bufs, true, async); + rx_bufs, true, cb, userdata); } #endif /* CONFIG_SPI_ASYNC */