drivers: spi: fix bad GENMASK in NXP LPSPI driver

Fixed swapped GENMASK arguments causing bad mask to be generated.

Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
This commit is contained in:
Benjamin Cabé 2025-06-16 15:21:56 +02:00 committed by Benjamin Cabé
commit ba0954848b

View file

@ -23,7 +23,7 @@
#define LPSPI_CHIP_SELECT_COUNT 4
#define LPSPI_MIN_FRAME_SIZE_BITS 8
#define LPSPI_INTERRUPT_BITS GENMASK(8, 13)
#define LPSPI_INTERRUPT_BITS GENMASK(13, 8)
/* Required by DEVICE_MMIO_NAMED_* macros */
#define DEV_CFG(_dev) ((const struct lpspi_config *)(_dev)->config)