diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/spi/spi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/spi/spi.h b/include/linux/spi/spi.h index 28e440be1c07..c920c2f4dad5 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h | |||
| @@ -309,7 +309,7 @@ struct spi_master { | |||
| 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) | 311 | #define SPI_BPW_MASK(bits) BIT((bits) - 1) |
| 312 | #define SPI_BIT_MASK(bits) (((bits) == 32) ? ~0UL : (BIT(bits) - 1)) | 312 | #define SPI_BIT_MASK(bits) (((bits) == 32) ? ~0U : (BIT(bits) - 1)) |
| 313 | #define SPI_BPW_RANGE_MASK(min, max) (SPI_BIT_MASK(max) - SPI_BIT_MASK(min - 1)) | 313 | #define SPI_BPW_RANGE_MASK(min, max) (SPI_BIT_MASK(max) - SPI_BIT_MASK(min - 1)) |
| 314 | 314 | ||
| 315 | /* other constraints relevant to this driver */ | 315 | /* other constraints relevant to this driver */ |
