mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 13:41:48 -04:00
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: Marc Kleine-Budde <mkl@pengutronix.de> Link: https://patch.msgid.link/20260319-spi-fsl-lpspi-cleanups-v2-9-02b56c5d44a8@pengutronix.de Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
committed by
Mark Brown
parent
e59fe5e0c4
commit
b326c71d4e
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user