]> git.baikalelectronics.ru Git - kernel.git/commit
spi: remove check for bits_per_word on transfer from low level driver
authorLaxman Dewangan <ldewangan@nvidia.com>
Tue, 18 Dec 2012 08:55:43 +0000 (14:25 +0530)
committerGrant Likely <grant.likely@secretlab.ca>
Tue, 5 Feb 2013 12:26:59 +0000 (12:26 +0000)
commit57a2b41fd32cffcc9f64e80643226d8bdc38d998
tree95e426348573fd136fa4c7aeeeffb84143661e7a
parent7534007d5f842961321c6b5cf3b11c297ec2973a
spi: remove check for bits_per_word on transfer from low level driver

The spi core make sure that each transfer structure have the proper
setting for bits_per_word before calling low level transfer APIs.

Hence it is no more require to check again in low level driver for
this field whether this is set correct or not. Removing such code
from low level driver.

The txx9 change also removes a test for bits_per_word set to 0, and
forcing it to 8 in that case. This can also be removed now since
spi_setup() ensures spi->bits_per_word is not zero.

if (!spi->bits_per_word)
spi->bits_per_word = 8;

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi-altera.c
drivers/spi/spi-bfin-sport.c
drivers/spi/spi-bfin5xx.c
drivers/spi/spi-bitbang.c
drivers/spi/spi-clps711x.c
drivers/spi/spi-coldfire-qspi.c
drivers/spi/spi-ep93xx.c
drivers/spi/spi-s3c64xx.c
drivers/spi/spi-sirf.c
drivers/spi/spi-tegra20-slink.c
drivers/spi/spi-txx9.c