mirror of
https://github.com/torvalds/linux.git
synced 2024-12-25 04:11:49 +00:00
Merge remote-tracking branch 'spi/topic/bpw' into spi-next
This commit is contained in:
commit
8e28fb63a7
@ -309,7 +309,7 @@ struct spi_master {
|
|||||||
/* bitmask of supported bits_per_word for transfers */
|
/* bitmask of supported bits_per_word for transfers */
|
||||||
u32 bits_per_word_mask;
|
u32 bits_per_word_mask;
|
||||||
#define SPI_BPW_MASK(bits) BIT((bits) - 1)
|
#define SPI_BPW_MASK(bits) BIT((bits) - 1)
|
||||||
#define SPI_BIT_MASK(bits) (((bits) == 32) ? ~0UL : (BIT(bits) - 1))
|
#define SPI_BIT_MASK(bits) (((bits) == 32) ? ~0U : (BIT(bits) - 1))
|
||||||
#define SPI_BPW_RANGE_MASK(min, max) (SPI_BIT_MASK(max) - SPI_BIT_MASK(min - 1))
|
#define SPI_BPW_RANGE_MASK(min, max) (SPI_BIT_MASK(max) - SPI_BIT_MASK(min - 1))
|
||||||
|
|
||||||
/* other constraints relevant to this driver */
|
/* other constraints relevant to this driver */
|
||||||
|
Loading…
Reference in New Issue
Block a user