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: adapt to kernel coding style

Adapt the driver to current kernel coding style standards.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Link: https://patch.msgid.link/20260319-spi-fsl-lpspi-cleanups-v2-1-02b56c5d44a8@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Marc Kleine-Budde and committed by
Mark Brown
8292eded abe572f6

+6 -6
+6 -6
drivers/spi/spi-fsl-lpspi.c
··· 112 112 113 113 void *rx_buf; 114 114 const void *tx_buf; 115 - void (*tx)(struct fsl_lpspi_data *); 116 - void (*rx)(struct fsl_lpspi_data *); 115 + void (*tx)(struct fsl_lpspi_data *fsl_lpspi); 116 + void (*rx)(struct fsl_lpspi_data *fsl_lpspi); 117 117 118 118 u32 remain; 119 119 u8 watermark; ··· 271 271 } 272 272 273 273 fsl_lpspi_intctrl(fsl_lpspi, IER_FCIE); 274 - } else 274 + } else { 275 275 fsl_lpspi_intctrl(fsl_lpspi, IER_TDIE); 276 + } 276 277 } 277 278 278 279 static void fsl_lpspi_read_rx_fifo(struct fsl_lpspi_data *fsl_lpspi) ··· 349 348 return -EINVAL; 350 349 } 351 350 352 - if (config.speed_hz > perclk_rate / 2) { 351 + if (config.speed_hz > perclk_rate / 2) 353 352 div = 2; 354 - } else { 353 + else 355 354 div = DIV_ROUND_UP(perclk_rate, config.speed_hz); 356 - } 357 355 358 356 for (prescale = 0; prescale <= prescale_max; prescale++) { 359 357 scldiv = div / (1 << prescale) - 2;