diff options
Diffstat (limited to 'drivers/spi')
| -rw-r--r-- | drivers/spi/mpc8xxx_spi.c | 4 | ||||
| -rw-r--r-- | drivers/spi/omap3_spi.c | 10 | 
2 files changed, 7 insertions, 7 deletions
| diff --git a/drivers/spi/mpc8xxx_spi.c b/drivers/spi/mpc8xxx_spi.c index 348361a7f..0d59c3615 100644 --- a/drivers/spi/mpc8xxx_spi.c +++ b/drivers/spi/mpc8xxx_spi.c @@ -110,10 +110,10 @@ int spi_xfer(struct spi_slave *slave, unsigned int bitlen, const void *dout,  		if (bitlen <= 16) {  			if (bitlen <= 4)  				spi->mode = (spi->mode & 0xff0fffff) | -				            (3 << 20); +					    (3 << 20);  			else  				spi->mode = (spi->mode & 0xff0fffff) | -				            ((bitlen - 1) << 20); +					    ((bitlen - 1) << 20);  		} else {  			spi->mode = (spi->mode & 0xff0fffff);  			/* Set up the next iteration if sending > 32 bits */ diff --git a/drivers/spi/omap3_spi.c b/drivers/spi/omap3_spi.c index 3b38c3443..e80be8eaa 100644 --- a/drivers/spi/omap3_spi.c +++ b/drivers/spi/omap3_spi.c @@ -50,7 +50,7 @@ static void omap3_spi_write_chconf(struct omap3_spi_slave *ds, int val)  static void omap3_spi_set_enable(struct omap3_spi_slave *ds, int enable)  {  	writel(enable, &ds->regs->channel[ds->slave.cs].chctrl); -        /* Flash post writes to make immediate effect */ +	/* Flash post writes to make immediate effect */  	readl(&ds->regs->channel[ds->slave.cs].chctrl);  } @@ -253,9 +253,9 @@ int omap3_spi_write(struct spi_slave *slave, unsigned int len, const u8 *txp,  		writel(txp[i], &ds->regs->channel[ds->slave.cs].tx);  	} -        /* wait to finish of transfer */ -        while (!(readl(&ds->regs->channel[ds->slave.cs].chstat) & -                         OMAP3_MCSPI_CHSTAT_EOT)); +	/* wait to finish of transfer */ +	while (!(readl(&ds->regs->channel[ds->slave.cs].chstat) & +			 OMAP3_MCSPI_CHSTAT_EOT));  	/* Disable the channel otherwise the next immediate RX will get affected */  	omap3_spi_set_enable(ds,OMAP3_MCSPI_CHCTRL_DIS); @@ -359,7 +359,7 @@ int omap3_spi_txrx(struct spi_slave *slave,  		rxp[i] = readl(&ds->regs->channel[ds->slave.cs].rx);  	}  	/* Disable the channel */ -        omap3_spi_set_enable(ds,OMAP3_MCSPI_CHCTRL_DIS); +	omap3_spi_set_enable(ds,OMAP3_MCSPI_CHCTRL_DIS);  	/*if transfer must be terminated disable the channel*/  	if (flags & SPI_XFER_END) { |