diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2012-11-09 10:06:45 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-11-09 17:42:17 +0100 |
commit | e6811d1d7a6a38ee637fe219c3b67dbfe17e8b3f (patch) | |
tree | c85ec0d0bd6f8475ffb6e7134d038fcc00eb4d0b /drivers/spi/spi-tegra20-slink.c | |
parent | spi: tegra: add spi driver for SLINK controller (diff) | |
download | linux-e6811d1d7a6a38ee637fe219c3b67dbfe17e8b3f.tar.xz linux-e6811d1d7a6a38ee637fe219c3b67dbfe17e8b3f.zip |
spi: make sure all transfer has bits_per_word set
When spi client does the spi transfer and does not sets
the bits_per_word for each transfer then set it as default
of spi device in spi core before calling low level transfer.
Removing the similar code from spi-tegra20-slink driver as
it is not required.
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/spi/spi-tegra20-slink.c')
-rw-r--r-- | drivers/spi/spi-tegra20-slink.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/spi/spi-tegra20-slink.c b/drivers/spi/spi-tegra20-slink.c index b8985be81d96..07dc7359fb12 100644 --- a/drivers/spi/spi-tegra20-slink.c +++ b/drivers/spi/spi-tegra20-slink.c @@ -727,8 +727,7 @@ static int tegra_slink_start_transfer_one(struct spi_device *spi, unsigned long command; unsigned long command2; - bits_per_word = t->bits_per_word ? t->bits_per_word : - spi->bits_per_word; + bits_per_word = t->bits_per_word; speed = t->speed_hz ? t->speed_hz : spi->max_speed_hz; if (!speed) speed = tspi->spi_max_frequency; |