aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJarkko Nikula <jarkko.nikula@linux.intel.com>2018-01-26 09:24:49 -0500
committerMark Brown <broonie@kernel.org>2018-01-26 09:50:43 -0500
commit993181e151311936d7a343fccd6cc4cebe83ad81 (patch)
treebec0ce1480abf95b321d9ed5a9d143e7dfb0132b
parent4fbd8d194f06c8a3fd2af1ce560ddb31f7ec8323 (diff)
spi: dw: Remove unused members from struct chip_data
Local struct chip_data has two members that are not used: - cs. Looks like was never used - enable_dma. Became unused by the commit f89a6d8f43eb ("spi: dw-mid: move to use core SPI DMA mappings"). Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com> Acked-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--drivers/spi/spi-dw.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/spi/spi-dw.c b/drivers/spi/spi-dw.c
index b217c22ff72f..211cc7d75bf8 100644
--- a/drivers/spi/spi-dw.c
+++ b/drivers/spi/spi-dw.c
@@ -30,13 +30,11 @@
30 30
31/* Slave spi_dev related */ 31/* Slave spi_dev related */
32struct chip_data { 32struct chip_data {
33 u8 cs; /* chip select pin */
34 u8 tmode; /* TR/TO/RO/EEPROM */ 33 u8 tmode; /* TR/TO/RO/EEPROM */
35 u8 type; /* SPI/SSP/MicroWire */ 34 u8 type; /* SPI/SSP/MicroWire */
36 35
37 u8 poll_mode; /* 1 means use poll mode */ 36 u8 poll_mode; /* 1 means use poll mode */
38 37
39 u8 enable_dma;
40 u16 clk_div; /* baud rate divider */ 38 u16 clk_div; /* baud rate divider */
41 u32 speed_hz; /* baud rate */ 39 u32 speed_hz; /* baud rate */
42 void (*cs_control)(u32 command); 40 void (*cs_control)(u32 command);