Skip to content

Commit 4c6dd33

Browse files
covanambroonie
authored andcommitted
spi: pl022: delete unused cur_gpiod in struct pl022
The member cur_gpiod of struct pl022 is not used anywhere. Delete it. Signed-off-by: Nam Cao <[email protected]> Link: https://msgid.link/r/7618c9d714aa1c16c7cb06f9d1fb1c074d1d9c65.1702298527.git.namcao@linutronix.de Signed-off-by: Mark Brown <[email protected]>
1 parent f925f69 commit 4c6dd33

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/spi/spi-pl022.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,6 @@ struct vendor_data {
361361
* @dummypage: a dummy page used for driving data on the bus with DMA
362362
* @dma_running: indicates whether DMA is in operation
363363
* @cur_cs: current chip select index
364-
* @cur_gpiod: current chip select GPIO descriptor
365364
*/
366365
struct pl022 {
367366
struct amba_device *adev;
@@ -393,7 +392,6 @@ struct pl022 {
393392
bool dma_running;
394393
#endif
395394
int cur_cs;
396-
struct gpio_desc *cur_gpiod;
397395
};
398396

399397
/**
@@ -1344,8 +1342,6 @@ static int pl022_transfer_one(struct spi_controller *host, struct spi_device *sp
13441342
/* Setup the SPI using the per chip configuration */
13451343
pl022->cur_chip = spi_get_ctldata(spi);
13461344
pl022->cur_cs = spi_get_chipselect(spi, 0);
1347-
/* This is always available but may be set to -ENOENT */
1348-
pl022->cur_gpiod = spi_get_csgpiod(spi, 0);
13491345

13501346
restore_state(pl022);
13511347
flush(pl022);

0 commit comments

Comments
 (0)