spi: stm32-qspi: Remove stm32_qspi_wait_poll_status() unused parameter
authorPatrice Chotard <patrice.chotard@foss.st.com>
Thu, 2 Jun 2022 09:25:40 +0000 (11:25 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 6 Jun 2022 11:39:14 +0000 (12:39 +0100)
op parameter is not used, remove it.

Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
Link: https://lore.kernel.org/r/20220602092540.369604-4-patrice.chotard@foss.st.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-stm32-qspi.c

index e5068e6..f3fe923 100644 (file)
@@ -330,8 +330,7 @@ out:
        return err;
 }
 
-static int stm32_qspi_wait_poll_status(struct stm32_qspi *qspi,
-                                      const struct spi_mem_op *op)
+static int stm32_qspi_wait_poll_status(struct stm32_qspi *qspi)
 {
        u32 cr;
 
@@ -404,7 +403,7 @@ static int stm32_qspi_send(struct spi_mem *mem, const struct spi_mem_op *op)
                writel_relaxed(op->addr.val, qspi->io_base + QSPI_AR);
 
        if (qspi->fmode == CCR_FMODE_APM)
-               err_poll_status = stm32_qspi_wait_poll_status(qspi, op);
+               err_poll_status = stm32_qspi_wait_poll_status(qspi);
 
        err = stm32_qspi_tx(qspi, op);