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 c28ac127ef3d..85151908eaf7 100644 --- a/include/linux/spi/spi.h +++ b/include/linux/spi/spi.h | |||
| @@ -314,7 +314,7 @@ struct spi_master { | |||
| 314 | /* bitmask of supported bits_per_word for transfers */ | 314 | /* bitmask of supported bits_per_word for transfers */ |
| 315 | u32 bits_per_word_mask; | 315 | u32 bits_per_word_mask; |
| 316 | #define SPI_BPW_MASK(bits) BIT((bits) - 1) | 316 | #define SPI_BPW_MASK(bits) BIT((bits) - 1) |
| 317 | #define SPI_BIT_MASK(bits) (((bits) == 32) ? ~0UL : (BIT(bits) - 1)) | 317 | #define SPI_BIT_MASK(bits) (((bits) == 32) ? ~0U : (BIT(bits) - 1)) |
| 318 | #define SPI_BPW_RANGE_MASK(min, max) (SPI_BIT_MASK(max) - SPI_BIT_MASK(min - 1)) | 318 | #define SPI_BPW_RANGE_MASK(min, max) (SPI_BIT_MASK(max) - SPI_BIT_MASK(min - 1)) |
| 319 | 319 | ||
| 320 | /* limits on transfer speed */ | 320 | /* limits on transfer speed */ |
