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

Marc Kleine-Budde posted 11 patches 3 weeks ago
There is a newer version of this series
[PATCH spi-next 09/11] spi: spi-fsl-lpspi: make struct lpspi_config::mode u32
Posted by Marc Kleine-Budde 3 weeks ago
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@pengutronix.de>
---
 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 ae06bc06f626..9ec5554b4fc0 100644
--- a/drivers/spi/spi-fsl-lpspi.c
+++ b/drivers/spi/spi-fsl-lpspi.c
@@ -104,7 +104,7 @@ struct lpspi_config {
 	u8 bpw;
 	u8 chip_select;
 	u8 prescale;
-	u16 mode;
+	u32 mode;
 	u32 speed_hz;
 	u32 effective_speed_hz;
 };

-- 
2.51.0