From: Stephen Warren Date: Wed, 22 May 2013 02:36:34 +0000 (-0600) Subject: spi: introduce macros to set bits_per_word_mask X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~28^2~18^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2922a8de996956893bb98e4aa91be9774c958336;p=pandora-kernel.git 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 Signed-off-by: Mark Brown --- Reading git-diff-tree failed