Skip to content

Commit

Permalink
spi: stm32-qspi: Remove unused qspi field of struct stm32_qspi_flash
Browse files Browse the repository at this point in the history
Remove struct stm32_qspi_flash's field qspi which is not used.

Fixes: c530cd1 ("spi: spi-mem: add stm32 qspi controller")
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Link: https://lore.kernel.org/r/20210615090115.30702-1-patrice.chotard@foss.st.com
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Patrice Chotard authored and Mark Brown committed Jun 15, 2021
1 parent 3ce6c9e commit 6a5976f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/spi/spi-stm32-qspi.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@
#define STM32_AUTOSUSPEND_DELAY -1

struct stm32_qspi_flash {
struct stm32_qspi *qspi;
u32 cs;
u32 presc;
};
Expand Down Expand Up @@ -590,7 +589,6 @@ static int stm32_qspi_setup(struct spi_device *spi)
presc = DIV_ROUND_UP(qspi->clk_rate, spi->max_speed_hz) - 1;

flash = &qspi->flash[spi->chip_select];
flash->qspi = qspi;
flash->cs = spi->chip_select;
flash->presc = presc;

Expand Down

0 comments on commit 6a5976f

Please sign in to comment.