spi: bcm2835: Use SPI_BPW_MASK macro for bits_per_word_mask setting
authorAxel Lin <axel.lin@ingics.com>
Mon, 5 Aug 2013 00:43:02 +0000 (08:43 +0800)
committerMark Brown <broonie@linaro.org>
Mon, 5 Aug 2013 14:55:09 +0000 (15:55 +0100)
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>
drivers/spi/spi-bcm2835.c

index 7604c52048627ecf47740d23ee4919a05fe1d0e6..7de617aba6955a122341966b8128ecb31f8df68a 100644 (file)
@@ -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;