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

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.

-9
-9
drivers/spi/spi-pl022.c
··· 341 341 * @cur_msg: Pointer to current spi_message being processed 342 342 * @cur_transfer: Pointer to current spi_transfer 343 343 * @cur_chip: pointer to current clients chip(assigned from controller_state) 344 - * @next_msg_cs_active: the next message in the queue has been examined 345 - * and it was found that it uses the same chip select as the previous 346 - * message, so we left it active after the previous transfer, and it's 347 - * active already. 348 344 * @tx: current position in TX buffer to be read 349 345 * @tx_end: end position in TX buffer to be read 350 346 * @rx: current position in RX buffer to be written ··· 357 361 * @dummypage: a dummy page used for driving data on the bus with DMA 358 362 * @dma_running: indicates whether DMA is in operation 359 363 * @cur_cs: current chip select index 360 - * @cur_gpiod: current chip select GPIO descriptor 361 364 */ 362 365 struct pl022 { 363 366 struct amba_device *adev; ··· 368 373 struct pl022_ssp_controller *host_info; 369 374 struct spi_transfer *cur_transfer; 370 375 struct chip_data *cur_chip; 371 - bool next_msg_cs_active; 372 376 void *tx; 373 377 void *tx_end; 374 378 void *rx; ··· 387 393 bool dma_running; 388 394 #endif 389 395 int cur_cs; 390 - struct gpio_desc *cur_gpiod; 391 396 }; 392 397 393 398 /** ··· 1337 1344 /* Setup the SPI using the per chip configuration */ 1338 1345 pl022->cur_chip = spi_get_ctldata(spi); 1339 1346 pl022->cur_cs = spi_get_chipselect(spi, 0); 1340 - /* This is always available but may be set to -ENOENT */ 1341 - pl022->cur_gpiod = spi_get_csgpiod(spi, 0); 1342 1347 1343 1348 restore_state(pl022); 1344 1349 flush(pl022);