diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-08-05 08:43:02 +0800 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-08-05 15:55:09 +0100 |
commit | c2b6a3a82d630574cc1ad859722d507a1fde889a (patch) | |
tree | 4e097f357a161a1c9eb7733fd1f0958031c3f776 /drivers | |
parent | e5d950f024c05749da9cd64765b3daa0e2229f9f (diff) | |
download | lwn-c2b6a3a82d630574cc1ad859722d507a1fde889a.tar.gz lwn-c2b6a3a82d630574cc1ad859722d507a1fde889a.zip |
spi: bcm2835: Use SPI_BPW_MASK macro for bits_per_word_mask setting
We have a SPI_BPW_MASK macro defined in spi.h, use it instead of open-coded.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/spi/spi-bcm2835.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-bcm2835.c b/drivers/spi/spi-bcm2835.c index 7604c5204862..7de617aba695 100644 --- a/drivers/spi/spi-bcm2835.c +++ b/drivers/spi/spi-bcm2835.c @@ -314,7 +314,7 @@ static int bcm2835_spi_probe(struct platform_device *pdev) platform_set_drvdata(pdev, master); master->mode_bits = BCM2835_SPI_MODE_BITS; - master->bits_per_word_mask = BIT(8 - 1); + master->bits_per_word_mask = SPI_BPW_MASK(8); master->bus_num = -1; master->num_chipselect = 3; master->transfer_one_message = bcm2835_spi_transfer_one; |