From: Marc Kleine-Budde Date: Thu, 19 Mar 2026 16:55:45 +0000 (+0100) Subject: spi: spi-fsl-lpspi: make struct lpspi_config::mode u32 X-Git-Tag: v7.1-rc1~153^2~34 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=baa1cb259cc7f034435c3b8dad3e14267e2e6153;p=thirdparty%2Fkernel%2Flinux.git 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 Link: https://patch.msgid.link/20260319-spi-fsl-lpspi-cleanups-v2-11-02b56c5d44a8@pengutronix.de Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-fsl-lpspi.c b/drivers/spi/spi-fsl-lpspi.c index 3771fed7ea3f7..d266216ed5cb1 100644 --- a/drivers/spi/spi-fsl-lpspi.c +++ b/drivers/spi/spi-fsl-lpspi.c @@ -101,7 +101,7 @@ struct lpspi_config { u8 bpw; u8 chip_select; u8 prescale; - u16 mode; + u32 mode; u32 speed_hz; u32 effective_speed_hz; };