aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2023-12-11 19:04:43 +0000
committerMark Brown <broonie@kernel.org>2023-12-11 19:04:43 +0000
commit0d7096c1dddbd6635fc9a819e98d0aa130deaf2b (patch)
treed4faa1f7c44c89d1aaadd163c3803507506f69a5 /drivers/spi
parent4ac9ed81aaaab128b98855cd6005a52fa65dd4da (diff)
parent3c49d848d2d3c6fe46522e4d750fc3a18e699997 (diff)
downloadlinux-0d7096c1dddbd6635fc9a819e98d0aa130deaf2b.tar.gz
spi: pl022: clean up some unused variables
Merge series from Nam Cao <namcao@linutronix.de>: The driver was refactored in 9b2ef250b31d ("spi: spl022: switch to use default spi_transfer_one_message()"), and some variables are now unused because of that. Clean them up.
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi-pl022.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c
index 1e3bd6f3303a4c..3baf45da01cd2c 100644
--- a/drivers/spi/spi-pl022.c
+++ b/drivers/spi/spi-pl022.c
@@ -341,10 +341,6 @@ struct vendor_data {
* @cur_msg: Pointer to current spi_message being processed
* @cur_transfer: Pointer to current spi_transfer
* @cur_chip: pointer to current clients chip(assigned from controller_state)
- * @next_msg_cs_active: the next message in the queue has been examined
- * and it was found that it uses the same chip select as the previous
- * message, so we left it active after the previous transfer, and it's
- * active already.
* @tx: current position in TX buffer to be read
* @tx_end: end position in TX buffer to be read
* @rx: current position in RX buffer to be written
@@ -361,7 +357,6 @@ struct vendor_data {
* @dummypage: a dummy page used for driving data on the bus with DMA
* @dma_running: indicates whether DMA is in operation
* @cur_cs: current chip select index
- * @cur_gpiod: current chip select GPIO descriptor
*/
struct pl022 {
struct amba_device *adev;
@@ -373,7 +368,6 @@ struct pl022 {
struct pl022_ssp_controller *host_info;
struct spi_transfer *cur_transfer;
struct chip_data *cur_chip;
- bool next_msg_cs_active;
void *tx;
void *tx_end;
void *rx;
@@ -393,7 +387,6 @@ struct pl022 {
bool dma_running;
#endif
int cur_cs;
- struct gpio_desc *cur_gpiod;
};
/**
@@ -1344,8 +1337,6 @@ static int pl022_transfer_one(struct spi_controller *host, struct spi_device *sp
/* Setup the SPI using the per chip configuration */
pl022->cur_chip = spi_get_ctldata(spi);
pl022->cur_cs = spi_get_chipselect(spi, 0);
- /* This is always available but may be set to -ENOENT */
- pl022->cur_gpiod = spi_get_csgpiod(spi, 0);
restore_state(pl022);
flush(pl022);