Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Marc Kleine-Budde and committed by
Mark Brown
b326c71d e59fe5e0

+1 -3
+1 -3
drivers/spi/spi-fsl-lpspi.c
··· 573 573 return 0; 574 574 } 575 575 576 - static int fsl_lpspi_reset(struct fsl_lpspi_data *fsl_lpspi) 576 + static void fsl_lpspi_reset(struct fsl_lpspi_data *fsl_lpspi) 577 577 { 578 578 u32 temp; 579 579 ··· 588 588 589 589 /* W1C for all flags in SR */ 590 590 writel(SR_CLEAR_MASK, fsl_lpspi->base + IMX7ULP_SR); 591 - 592 - return 0; 593 591 } 594 592 595 593 static void fsl_lpspi_dma_rx_callback(void *cookie)