]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
spi: spi-fsl-lpspi: make struct lpspi_config::mode u32
authorMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 19 Mar 2026 16:55:45 +0000 (17:55 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 7 Apr 2026 10:54:33 +0000 (11:54 +0100)
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>
drivers/spi/spi-fsl-lpspi.c

index 3771fed7ea3f714d4004f298a508c0c0a62535d8..d266216ed5cb1cd478162e2b557529c3d4a282af 100644 (file)
@@ -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;
 };