diff options
author | Clement Leger <cleger@kalray.eu> | 2020-04-16 13:09:15 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-04-16 15:28:32 +0200 |
commit | ae9e6ac4d8542d1b16fad4bd3c3e447632437623 (patch) | |
tree | 9f2a6fbae96d830046a70e2e92a710d5daae676b /drivers/spi/spi-dw.h | |
parent | spi: spidev_test: Add support for Octal mode data transfers (diff) | |
download | linux-ae9e6ac4d8542d1b16fad4bd3c3e447632437623.tar.xz linux-ae9e6ac4d8542d1b16fad4bd3c3e447632437623.zip |
spi: dw: remove unused dw_spi_chip handling
The path of code using this struct is unused since there is no more user
of this. Remove code and struct definition.
Signed-off-by: Clement Leger <cleger@kalray.eu>
Link: https://lore.kernel.org/r/20200416110916.22633-1-cleger@kalray.eu
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-dw.h')
-rw-r--r-- | drivers/spi/spi-dw.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/spi/spi-dw.h b/drivers/spi/spi-dw.h index 1bf5713e047d..44ef18187c15 100644 --- a/drivers/spi/spi-dw.h +++ b/drivers/spi/spi-dw.h @@ -235,18 +235,6 @@ static inline void spi_shutdown_chip(struct dw_spi *dws) spi_set_clk(dws, 0); } -/* - * Each SPI slave device to work with dw_api controller should - * has such a structure claiming its working mode (poll or PIO/DMA), - * which can be save in the "controller_data" member of the - * struct spi_device. - */ -struct dw_spi_chip { - u8 poll_mode; /* 1 for controller polling mode */ - u8 type; /* SPI/SSP/MicroWire */ - void (*cs_control)(u32 command); -}; - extern void dw_spi_set_cs(struct spi_device *spi, bool enable); extern int dw_spi_add_host(struct device *dev, struct dw_spi *dws); extern void dw_spi_remove_host(struct dw_spi *dws); |