]> git.baikalelectronics.ru Git - kernel.git/commit
spi: introduce macros to set bits_per_word_mask
authorStephen Warren <swarren@wwwdotorg.org>
Wed, 22 May 2013 02:36:34 +0000 (20:36 -0600)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 22 May 2013 15:57:43 +0000 (10:57 -0500)
commit683b7c51521d0ed34c2a5a9467c8949612fba719
treec9181673361f52877caa50047ecc04dabbd13c0d
parent2187cc16d19b7c024d3688db93fabe2573ab34fa
spi: introduce macros to set bits_per_word_mask

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 Warren <swarren@wwwdotorg.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
include/linux/spi/spi.h