Commit 30d67142 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Mark Brown

spi: imx: style fixes

This change fixes some random style issues that I noticed while debugging
the driver: Remove some double spaces, use tabs for indention instead
of spaces if possible, fix comment style.
Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 00b80ac9
...@@ -39,8 +39,8 @@ ...@@ -39,8 +39,8 @@
#define MXC_INT_TE (1 << 1) /* Transmit FIFO empty interrupt */ #define MXC_INT_TE (1 << 1) /* Transmit FIFO empty interrupt */
#define MXC_INT_RDR BIT(4) /* Receive date threshold interrupt */ #define MXC_INT_RDR BIT(4) /* Receive date threshold interrupt */
/* The maximum bytes that a sdma BD can transfer.*/ /* The maximum bytes that a sdma BD can transfer. */
#define MAX_SDMA_BD_BYTES (1 << 15) #define MAX_SDMA_BD_BYTES (1 << 15)
#define MX51_ECSPI_CTRL_MAX_BURST 512 #define MX51_ECSPI_CTRL_MAX_BURST 512
/* The maximum bytes that IMX53_ECSPI can transfer in slave mode.*/ /* The maximum bytes that IMX53_ECSPI can transfer in slave mode.*/
#define MX53_MAX_TRANSFER_BYTES 512 #define MX53_MAX_TRANSFER_BYTES 512
...@@ -257,7 +257,7 @@ static bool spi_imx_can_dma(struct spi_master *master, struct spi_device *spi, ...@@ -257,7 +257,7 @@ static bool spi_imx_can_dma(struct spi_master *master, struct spi_device *spi,
#define MX51_ECSPI_INT_RREN (1 << 3) #define MX51_ECSPI_INT_RREN (1 << 3)
#define MX51_ECSPI_INT_RDREN (1 << 4) #define MX51_ECSPI_INT_RDREN (1 << 4)
#define MX51_ECSPI_DMA 0x14 #define MX51_ECSPI_DMA 0x14
#define MX51_ECSPI_DMA_TX_WML(wml) ((wml) & 0x3f) #define MX51_ECSPI_DMA_TX_WML(wml) ((wml) & 0x3f)
#define MX51_ECSPI_DMA_RX_WML(wml) (((wml) & 0x3f) << 16) #define MX51_ECSPI_DMA_RX_WML(wml) (((wml) & 0x3f) << 16)
#define MX51_ECSPI_DMA_RXT_WML(wml) (((wml) & 0x3f) << 24) #define MX51_ECSPI_DMA_RXT_WML(wml) (((wml) & 0x3f) << 24)
...@@ -726,8 +726,10 @@ static int mx31_config(struct spi_device *spi) ...@@ -726,8 +726,10 @@ static int mx31_config(struct spi_device *spi)
writel(reg, spi_imx->base + MX31_CSPI_TESTREG); writel(reg, spi_imx->base + MX31_CSPI_TESTREG);
if (spi_imx->usedma) { if (spi_imx->usedma) {
/* configure DMA requests when RXFIFO is half full and /*
when TXFIFO is half empty */ * configure DMA requests when RXFIFO is half full and
* when TXFIFO is half empty
*/
writel(MX31_DMAREG_RH_DEN | MX31_DMAREG_TH_DEN, writel(MX31_DMAREG_RH_DEN | MX31_DMAREG_TH_DEN,
spi_imx->base + MX31_CSPI_DMAREG); spi_imx->base + MX31_CSPI_DMAREG);
} }
...@@ -1093,7 +1095,7 @@ static void spi_imx_push(struct spi_imx_data *spi_imx) ...@@ -1093,7 +1095,7 @@ static void spi_imx_push(struct spi_imx_data *spi_imx)
if (!spi_imx->count) if (!spi_imx->count)
break; break;
if (spi_imx->dynamic_burst && if (spi_imx->dynamic_burst &&
spi_imx->txfifo >= DIV_ROUND_UP(spi_imx->remainder, spi_imx->txfifo >= DIV_ROUND_UP(spi_imx->remainder,
fifo_words)) fifo_words))
break; break;
spi_imx->tx(spi_imx); spi_imx->tx(spi_imx);
...@@ -1187,7 +1189,7 @@ static int spi_imx_setupxfer(struct spi_device *spi, ...@@ -1187,7 +1189,7 @@ static int spi_imx_setupxfer(struct spi_device *spi,
return 0; return 0;
spi_imx->bits_per_word = t->bits_per_word; spi_imx->bits_per_word = t->bits_per_word;
spi_imx->speed_hz = t->speed_hz; spi_imx->speed_hz = t->speed_hz;
/* /*
* Initialize the functions for transfer. To transfer non byte-aligned * Initialize the functions for transfer. To transfer non byte-aligned
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment