Re: [PATCH 1/2] spi: introduce macros to set bits_per_word_mask

2013-05-22 Thread Mark Brown
On Tue, May 21, 2013 at 08:36:34PM -0600, Stephen Warren wrote: > Introduce two macros to make setting up spi_master.bits_per_word_mask > easier, and avoid mistakes like writing BIT(n) instead of BIT(n - 1). Applied, thanks. signature.asc Description: Digital signature

[PATCH 1/2] spi: introduce macros to set bits_per_word_mask

2013-05-21 Thread Stephen Warren
Introduce two macros to make setting up spi_master.bits_per_word_mask easier, and avoid mistakes like writing BIT(n) instead of BIT(n - 1). SPI_BPW_MASK is for a single supported value of bits_per_word_mask. SPI_BPW_RANGE_MASK represents a contiguous set of bit lengths. Signed-off-by: Stephen Wa