diff options
author | Jarkko Nikula <jarkko.nikula@linux.intel.com> | 2015-09-15 15:26:26 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-09-17 19:36:14 +0200 |
commit | 4f1474b3b786305d77c93c232f65d40018043e9f (patch) | |
tree | b563167dd70fe9e06d0e7f7330c1512c179d1f55 /drivers/spi/spi-pxa2xx.h | |
parent | Linux 4.3-rc1 (diff) | |
download | linux-4f1474b3b786305d77c93c232f65d40018043e9f.tar.xz linux-4f1474b3b786305d77c93c232f65d40018043e9f.zip |
spi: pxa2xx: Remove two variables from struct chip_data
There is no need to carry spi->max_speed_hz and spi->bits_per_word from
setup() in "struct chip_data" since pump_transfers() will anyway take the
transfer parameters from "struct spi_transfer". This is since SPI core
validates both bits_per_word and speed_hz transfer parameters and defaults
to spi->bits_per_word and spi->max_speed_hz in case these per transfer
parameters are not set.
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-pxa2xx.h')
-rw-r--r-- | drivers/spi/spi-pxa2xx.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/spi/spi-pxa2xx.h b/drivers/spi/spi-pxa2xx.h index 0a9b6390a817..0875e985b90d 100644 --- a/drivers/spi/spi-pxa2xx.h +++ b/drivers/spi/spi-pxa2xx.h @@ -98,8 +98,6 @@ struct chip_data { u16 lpss_rx_threshold; u16 lpss_tx_threshold; u8 enable_dma; - u8 bits_per_word; - u32 speed_hz; union { int gpio_cs; unsigned int frm; |