提交 dda04c7b 编写于 作者: R Roman Tereshonkov 提交者: Grant Likely

omap2_mcspi: small fixes of output data format

Replaces %04x by %08x for 32-bits data output.
Signed-off-by: NRoman Tereshonkov <roman.tereshonkov@nokia.com>
Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
上级 a330ce20
...@@ -533,7 +533,7 @@ omap2_mcspi_txrx_pio(struct spi_device *spi, struct spi_transfer *xfer) ...@@ -533,7 +533,7 @@ omap2_mcspi_txrx_pio(struct spi_device *spi, struct spi_transfer *xfer)
goto out; goto out;
} }
#ifdef VERBOSE #ifdef VERBOSE
dev_dbg(&spi->dev, "write-%d %04x\n", dev_dbg(&spi->dev, "write-%d %08x\n",
word_len, *tx); word_len, *tx);
#endif #endif
__raw_writel(*tx++, tx_reg); __raw_writel(*tx++, tx_reg);
...@@ -551,7 +551,7 @@ omap2_mcspi_txrx_pio(struct spi_device *spi, struct spi_transfer *xfer) ...@@ -551,7 +551,7 @@ omap2_mcspi_txrx_pio(struct spi_device *spi, struct spi_transfer *xfer)
mcspi_write_chconf0(spi, l); mcspi_write_chconf0(spi, l);
*rx++ = __raw_readl(rx_reg); *rx++ = __raw_readl(rx_reg);
#ifdef VERBOSE #ifdef VERBOSE
dev_dbg(&spi->dev, "read-%d %04x\n", dev_dbg(&spi->dev, "read-%d %08x\n",
word_len, *(rx - 1)); word_len, *(rx - 1));
#endif #endif
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册