Unverified Commit b326c71d authored by Marc Kleine-Budde's avatar Marc Kleine-Budde Committed by Mark Brown
Browse files

spi: spi-fsl-lpspi: fsl_lpspi_reset(): convert to void function



The function fsl_lpspi_reset() cannot fail and it's return value is never
checked.

Simplify the code and convert it into a void function.

Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
Link: https://patch.msgid.link/20260319-spi-fsl-lpspi-cleanups-v2-9-02b56c5d44a8@pengutronix.de


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent e59fe5e0
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -573,7 +573,7 @@ static int fsl_lpspi_wait_for_completion(struct spi_controller *controller)
	return 0;
}

static int fsl_lpspi_reset(struct fsl_lpspi_data *fsl_lpspi)
static void fsl_lpspi_reset(struct fsl_lpspi_data *fsl_lpspi)
{
	u32 temp;

@@ -588,8 +588,6 @@ static int fsl_lpspi_reset(struct fsl_lpspi_data *fsl_lpspi)

	/* W1C for all flags in SR */
	writel(SR_CLEAR_MASK, fsl_lpspi->base + IMX7ULP_SR);

	return 0;
}

static void fsl_lpspi_dma_rx_callback(void *cookie)