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);
|
nxsem_wait_uninterruptible(&priv->sem_isr);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (nrf52_spi_getreg(priv, NRF52_SPIM_TXDAMOUNT_OFFSET) !=
|
regval = nrf52_spi_getreg(priv, NRF52_SPIM_TXDAMOUNT_OFFSET);
|
||||||
transfer_size)
|
if (regval != transfer_size)
|
||||||
{
|
{
|
||||||
spierr("Incomplete transfer wrote %" PRId32 " expected %zu\n",
|
spierr("Incomplete transfer wrote %" PRId32 " expected %zu\n",
|
||||||
regval, nwords);
|
regval, transfer_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* SPI stop */
|
/* SPI stop */
|
||||||
|
@ -1158,11 +1158,11 @@ static void nrf53_spi_exchange(struct spi_dev_s *dev,
|
|||||||
nxsem_wait_uninterruptible(&priv->sem_isr);
|
nxsem_wait_uninterruptible(&priv->sem_isr);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (nrf53_spi_getreg(priv, NRF53_SPIM_TXDAMOUNT_OFFSET) !=
|
regval = nrf53_spi_getreg(priv, NRF53_SPIM_TXDAMOUNT_OFFSET);
|
||||||
transfer_size)
|
if (regval != transfer_size)
|
||||||
{
|
{
|
||||||
spierr("Incomplete transfer wrote %" PRId32 " expected %zu\n",
|
spierr("Incomplete transfer wrote %" PRId32 " expected %zu\n",
|
||||||
regval, nwords);
|
regval, transfer_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* SPI stop */
|
/* SPI stop */
|
||||||
|
@ -1158,11 +1158,11 @@ static void nrf91_spi_exchange(struct spi_dev_s *dev,
|
|||||||
nxsem_wait_uninterruptible(&priv->sem_isr);
|
nxsem_wait_uninterruptible(&priv->sem_isr);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (nrf91_spi_getreg(priv, NRF91_SPIM_TXDAMOUNT_OFFSET) !=
|
regval = nrf91_spi_getreg(priv, NRF91_SPIM_TXDAMOUNT_OFFSET);
|
||||||
transfer_size)
|
if (regval != transfer_size)
|
||||||
{
|
{
|
||||||
spierr("Incomplete transfer wrote %" PRId32 " expected %zu\n",
|
spierr("Incomplete transfer wrote %" PRId32 " expected %zu\n",
|
||||||
regval, nwords);
|
regval, transfer_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* SPI stop */
|
/* SPI stop */
|
||||||
|
Loading…
Reference in New Issue
Block a user