Skip to content

Commit ba09548

Browse files
committed
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>
1 parent bb3a898 commit ba09548

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/spi/spi_nxp_lpspi/spi_nxp_lpspi_priv.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#define LPSPI_CHIP_SELECT_COUNT 4
2424
#define LPSPI_MIN_FRAME_SIZE_BITS 8
2525

26-
#define LPSPI_INTERRUPT_BITS GENMASK(8, 13)
26+
#define LPSPI_INTERRUPT_BITS GENMASK(13, 8)
2727

2828
/* Required by DEVICE_MMIO_NAMED_* macros */
2929
#define DEV_CFG(_dev) ((const struct lpspi_config *)(_dev)->config)

0 commit comments

Comments
 (0)