diff options
-rw-r--r-- | include/linux/spi/spi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index 6ff26c8db7b9..173725622252 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h | |||
@@ -308,6 +308,8 @@ struct spi_master { | |||
308 | 308 | ||
309 | /* bitmask of supported bits_per_word for transfers */ | 309 | /* bitmask of supported bits_per_word for transfers */ |
310 | u32 bits_per_word_mask; | 310 | u32 bits_per_word_mask; |
311 | #define SPI_BPW_MASK(bits) BIT((bits) - 1) | ||
312 | #define SPI_BPW_RANGE_MASK(min, max) ((BIT(max) - 1) - (BIT(min) - 1)) | ||
311 | 313 | ||
312 | /* other constraints relevant to this driver */ | 314 | /* other constraints relevant to this driver */ |
313 | u16 flags; | 315 | u16 flags; |