arch/nrf{52|53|91}/spi: fix error message
wrong parameters were passed to spierr()
This commit is contained in:
parent
8b931b43b1
commit
a20b3e8335
@ -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 */
|
||||
|
@ -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 */
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user