Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jarkko Nikula and committed by
Mark Brown
993181e1 4fbd8d19

-2
-2
drivers/spi/spi-dw.c
··· 30 30 31 31 /* Slave spi_dev related */ 32 32 struct chip_data { 33 - u8 cs; /* chip select pin */ 34 33 u8 tmode; /* TR/TO/RO/EEPROM */ 35 34 u8 type; /* SPI/SSP/MicroWire */ 36 35 37 36 u8 poll_mode; /* 1 means use poll mode */ 38 37 39 - u8 enable_dma; 40 38 u16 clk_div; /* baud rate divider */ 41 39 u32 speed_hz; /* baud rate */ 42 40 void (*cs_control)(u32 command);