drivers: spi: psoc6: Fix spi_psoc6_transceive calls
The commit 4c20403629
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 <root@stephanos.io>
This commit is contained in:
parent
a25257fcef
commit
e9b29a6f83
1 changed files with 4 additions and 3 deletions
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue