]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
spi: dw: remove bits_per_word member of struct chip_data
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 14 Oct 2015 20:12:20 +0000 (23:12 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 19 Oct 2015 19:32:01 +0000 (20:32 +0100)
commit863cb2f72e636c8721482fd88e256facb59c5737
tree76c80f8b30ae3866c36808edba94ec5e74aeb599
parent4adb1f8f880081ee9921ebd399786387e0cd6f52
spi: dw: remove bits_per_word member of struct chip_data

There is no need to carry over spi->bits_per_word and Co from ->setup() in
struct chip_data since ->transfer_one() will anyway take the transfer
parameters from struct spi_transfer. This is since SPI core validates both
bits_per_word transfer parameter and defaults to spi->bits_per_word in case
that per transfer parameter is not set.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-dw.c