spi: Add missing newline to dev_ prints in drivers
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com> Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
parent
61e6cfa80d
commit
a1829d2b76
@ -592,7 +592,7 @@ bfin_sport_spi_setup(struct spi_device *spi)
|
|||||||
*/
|
*/
|
||||||
if (chip_info->ctl_reg || chip_info->enable_dma) {
|
if (chip_info->ctl_reg || chip_info->enable_dma) {
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
dev_err(&spi->dev, "don't set ctl_reg/enable_dma fields");
|
dev_err(&spi->dev, "don't set ctl_reg/enable_dma fields\n");
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
chip->cs_chg_udelay = chip_info->cs_chg_udelay;
|
chip->cs_chg_udelay = chip_info->cs_chg_udelay;
|
||||||
|
@ -524,7 +524,7 @@ static irqreturn_t bfin_spi_dma_irq_handler(int irq, void *dev_id)
|
|||||||
timeout = jiffies + HZ;
|
timeout = jiffies + HZ;
|
||||||
while (!(bfin_read(&drv_data->regs->stat) & BIT_STAT_SPIF))
|
while (!(bfin_read(&drv_data->regs->stat) & BIT_STAT_SPIF))
|
||||||
if (!time_before(jiffies, timeout)) {
|
if (!time_before(jiffies, timeout)) {
|
||||||
dev_warn(&drv_data->pdev->dev, "timeout waiting for SPIF");
|
dev_warn(&drv_data->pdev->dev, "timeout waiting for SPIF\n");
|
||||||
break;
|
break;
|
||||||
} else
|
} else
|
||||||
cpu_relax();
|
cpu_relax();
|
||||||
@ -1052,7 +1052,7 @@ static int bfin_spi_setup(struct spi_device *spi)
|
|||||||
if (!(spi->mode & SPI_CPHA))
|
if (!(spi->mode & SPI_CPHA))
|
||||||
dev_warn(&spi->dev, "Warning: SPI CPHA not set:"
|
dev_warn(&spi->dev, "Warning: SPI CPHA not set:"
|
||||||
" Slave Select not under software control!\n"
|
" Slave Select not under software control!\n"
|
||||||
" See Documentation/blackfin/bfin-spi-notes.txt");
|
" See Documentation/blackfin/bfin-spi-notes.txt\n");
|
||||||
|
|
||||||
chip->flag = (1 << spi->chip_select) << 8;
|
chip->flag = (1 << spi->chip_select) << 8;
|
||||||
} else
|
} else
|
||||||
|
@ -330,7 +330,7 @@ static int ep93xx_spi_chip_setup(const struct ep93xx_spi *espi,
|
|||||||
|
|
||||||
dev_dbg(&espi->pdev->dev, "setup: mode %d, cpsr %d, scr %d, dss %d\n",
|
dev_dbg(&espi->pdev->dev, "setup: mode %d, cpsr %d, scr %d, dss %d\n",
|
||||||
chip->spi->mode, div_cpsr, div_scr, dss);
|
chip->spi->mode, div_cpsr, div_scr, dss);
|
||||||
dev_dbg(&espi->pdev->dev, "setup: cr0 %#x", cr0);
|
dev_dbg(&espi->pdev->dev, "setup: cr0 %#x\n", cr0);
|
||||||
|
|
||||||
ep93xx_spi_write_u8(espi, SSPCPSR, div_cpsr);
|
ep93xx_spi_write_u8(espi, SSPCPSR, div_cpsr);
|
||||||
ep93xx_spi_write_u16(espi, SSPCR0, cr0);
|
ep93xx_spi_write_u16(espi, SSPCR0, cr0);
|
||||||
@ -509,7 +509,7 @@ ep93xx_spi_dma_prepare(struct ep93xx_spi *espi, enum dma_transfer_direction dir)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (WARN_ON(len)) {
|
if (WARN_ON(len)) {
|
||||||
dev_warn(&espi->pdev->dev, "len = %zu expected 0!", len);
|
dev_warn(&espi->pdev->dev, "len = %zu expected 0!\n", len);
|
||||||
return ERR_PTR(-EINVAL);
|
return ERR_PTR(-EINVAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -299,7 +299,7 @@ int fsl_spi_cpm_init(struct mpc8xxx_spi *mspi)
|
|||||||
|
|
||||||
switch (mspi->subblock) {
|
switch (mspi->subblock) {
|
||||||
default:
|
default:
|
||||||
dev_warn(dev, "cell-index unspecified, assuming SPI1");
|
dev_warn(dev, "cell-index unspecified, assuming SPI1\n");
|
||||||
/* fall through */
|
/* fall through */
|
||||||
case 0:
|
case 0:
|
||||||
mspi->subblock = QE_CR_SUBBLOCK_SPI1;
|
mspi->subblock = QE_CR_SUBBLOCK_SPI1;
|
||||||
|
@ -498,7 +498,7 @@ omap2_mcspi_rx_dma(struct spi_device *spi, struct spi_transfer *xfer,
|
|||||||
((u32 *)xfer->rx_buf)[elements++] = w;
|
((u32 *)xfer->rx_buf)[elements++] = w;
|
||||||
} else {
|
} else {
|
||||||
int bytes_per_word = mcspi_bytes_per_word(word_len);
|
int bytes_per_word = mcspi_bytes_per_word(word_len);
|
||||||
dev_err(&spi->dev, "DMA RX penultimate word empty");
|
dev_err(&spi->dev, "DMA RX penultimate word empty\n");
|
||||||
count -= (bytes_per_word << 1);
|
count -= (bytes_per_word << 1);
|
||||||
omap2_mcspi_set_enable(spi, 1);
|
omap2_mcspi_set_enable(spi, 1);
|
||||||
return count;
|
return count;
|
||||||
@ -516,7 +516,7 @@ omap2_mcspi_rx_dma(struct spi_device *spi, struct spi_transfer *xfer,
|
|||||||
else /* word_len <= 32 */
|
else /* word_len <= 32 */
|
||||||
((u32 *)xfer->rx_buf)[elements] = w;
|
((u32 *)xfer->rx_buf)[elements] = w;
|
||||||
} else {
|
} else {
|
||||||
dev_err(&spi->dev, "DMA RX last word empty");
|
dev_err(&spi->dev, "DMA RX last word empty\n");
|
||||||
count -= mcspi_bytes_per_word(word_len);
|
count -= mcspi_bytes_per_word(word_len);
|
||||||
}
|
}
|
||||||
omap2_mcspi_set_enable(spi, 1);
|
omap2_mcspi_set_enable(spi, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user