[PATCH spi-next v2 11/11] spi: spi-fsl-lpspi: make struct lpspi_config::mode u32

From: Marc Kleine-Budde

Date: Thu Mar 19 2026 - 13:01:52 EST


The struct lpspi_config::mode holds a copy of the mode of struct
spi_device::mode. In commit 937e6d756422 ("spi: expand mode support") the
struct spi_device::mode was increased from u16 to u32.

Increase the struct lpspi_config::mode to u32 avoid truncating the mode
variable.

Signed-off-by: Marc Kleine-Budde <mkl@xxxxxxxxxxxxxx>
---
drivers/spi/spi-fsl-lpspi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/spi-fsl-lpspi.c b/drivers/spi/spi-fsl-lpspi.c
index 3265618704b0..2c7a1c4db4f1 100644
--- a/drivers/spi/spi-fsl-lpspi.c
+++ b/drivers/spi/spi-fsl-lpspi.c
@@ -106,7 +106,7 @@ struct lpspi_config {
u8 bpw;
u8 chip_select;
u8 prescale;
- u16 mode;
+ u32 mode;
u32 speed_hz;
u32 effective_speed_hz;
};

--
2.53.0