]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
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)
commitbaa1cb259cc7f034435c3b8dad3e14267e2e6153
tree562b75c5f98c8f16d4ef4db22b239a83fab6dc13
parent4ef7fa7bca5728a3f61c28da73d7714ed1f303a6
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>
drivers/spi/spi-fsl-lpspi.c