diff mbox series

spi: stm32-qspi: Remove unused qspi field of struct stm32_qspi_flash

Message ID 20210615090115.30702-1-patrice.chotard@foss.st.com (mailing list archive)
State New, archived
Headers show
Series spi: stm32-qspi: Remove unused qspi field of struct stm32_qspi_flash | expand

Commit Message

Patrice CHOTARD June 15, 2021, 9:01 a.m. UTC
From: Patrice Chotard <patrice.chotard@foss.st.com>

Remove struct stm32_qspi_flash's field qspi which is not used.

Fixes: c530cd1d9d5e ("spi: spi-mem: add stm32 qspi controller")
Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
---
 drivers/spi/spi-stm32-qspi.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Mark Brown June 15, 2021, 3:15 p.m. UTC | #1
On Tue, 15 Jun 2021 11:01:15 +0200, patrice.chotard@foss.st.com wrote:
> Remove struct stm32_qspi_flash's field qspi which is not used.

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next

Thanks!

[1/1] spi: stm32-qspi: Remove unused qspi field of struct stm32_qspi_flash
      commit: 6a5976f23dc38749afcb62cc3acf5e3e2b53d5ba

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark
diff mbox series

Patch

diff --git a/drivers/spi/spi-stm32-qspi.c b/drivers/spi/spi-stm32-qspi.c
index a3ff0edf3eb7..27f35aa2d746 100644
--- a/drivers/spi/spi-stm32-qspi.c
+++ b/drivers/spi/spi-stm32-qspi.c
@@ -93,7 +93,6 @@ 
 #define STM32_AUTOSUSPEND_DELAY -1
 
 struct stm32_qspi_flash {
-	struct stm32_qspi *qspi;
 	u32 cs;
 	u32 presc;
 };
@@ -593,7 +592,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;