arch/nrf{52|53|91}/spi: fix error message

wrong parameters were passed to spierr()
This commit is contained in:
raiden00pl 2024-03-05 15:05:04 +01:00 committed by Xiang Xiao
parent 8b931b43b1
commit a20b3e8335
3 changed files with 9 additions and 9 deletions

View File

@ -1164,11 +1164,11 @@ static void nrf52_spi_exchange(struct spi_dev_s *dev,
nxsem_wait_uninterruptible(&priv->sem_isr);
#endif
if (nrf52_spi_getreg(priv, NRF52_SPIM_TXDAMOUNT_OFFSET) !=
transfer_size)
regval = nrf52_spi_getreg(priv, NRF52_SPIM_TXDAMOUNT_OFFSET);
if (regval != transfer_size)
{
spierr("Incomplete transfer wrote %" PRId32 " expected %zu\n",
regval, nwords);
regval, transfer_size);
}
/* SPI stop */

View File

@ -1158,11 +1158,11 @@ static void nrf53_spi_exchange(struct spi_dev_s *dev,
nxsem_wait_uninterruptible(&priv->sem_isr);
#endif
if (nrf53_spi_getreg(priv, NRF53_SPIM_TXDAMOUNT_OFFSET) !=
transfer_size)
regval = nrf53_spi_getreg(priv, NRF53_SPIM_TXDAMOUNT_OFFSET);
if (regval != transfer_size)
{
spierr("Incomplete transfer wrote %" PRId32 " expected %zu\n",
regval, nwords);
regval, transfer_size);
}
/* SPI stop */

View File

@ -1158,11 +1158,11 @@ static void nrf91_spi_exchange(struct spi_dev_s *dev,
nxsem_wait_uninterruptible(&priv->sem_isr);
#endif
if (nrf91_spi_getreg(priv, NRF91_SPIM_TXDAMOUNT_OFFSET) !=
transfer_size)
regval = nrf91_spi_getreg(priv, NRF91_SPIM_TXDAMOUNT_OFFSET);
if (regval != transfer_size)
{
spierr("Incomplete transfer wrote %" PRId32 " expected %zu\n",
regval, nwords);
regval, transfer_size);
}
/* SPI stop */