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: make struct lpspi_config::mode u32

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>
Link: https://patch.msgid.link/20260319-spi-fsl-lpspi-cleanups-v2-11-02b56c5d44a8@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Marc Kleine-Budde and committed by
Mark Brown
baa1cb25 4ef7fa7b

+1 -1
+1 -1
drivers/spi/spi-fsl-lpspi.c
··· 101 101 u8 bpw; 102 102 u8 chip_select; 103 103 u8 prescale; 104 - u16 mode; 104 + u32 mode; 105 105 u32 speed_hz; 106 106 u32 effective_speed_hz; 107 107 };