commit | 2922a8de996956893bb98e4aa91be9774c958336 | [log] [tgz] |
---|---|---|
author | Stephen Warren <swarren@wwwdotorg.org> | Tue May 21 20:36:34 2013 -0600 |
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | Wed May 22 10:57:43 2013 -0500 |
tree | c9181673361f52877caa50047ecc04dabbd13c0d | |
parent | c7788792a5e7b0d5d7f96d0766b4cb6112d47d75 [diff] |
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>