diff options
author | Axel Lin <axel.lin@ingics.com> | 2014-02-05 17:59:18 +0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-07 16:21:28 +0400 |
commit | aa188f90ff1a82fa8f848092ff4969dba78b275f (patch) | |
tree | e86f5098f2815ff827455510baf4d8cdabdfd607 /drivers/spi/spi-bfin-v3.c | |
parent | 38dbfb59d1175ef458d006556061adeaa8751b72 (diff) | |
download | linux-aa188f90ff1a82fa8f848092ff4969dba78b275f.tar.xz |
spi: Use SPI_BPW_MASK macro at appropriate places
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi/spi-bfin-v3.c')
-rw-r--r-- | drivers/spi/spi-bfin-v3.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/spi/spi-bfin-v3.c b/drivers/spi/spi-bfin-v3.c index 8f8598834b30..4089d0e0d84e 100644 --- a/drivers/spi/spi-bfin-v3.c +++ b/drivers/spi/spi-bfin-v3.c @@ -822,7 +822,8 @@ static int bfin_spi_probe(struct platform_device *pdev) master->cleanup = bfin_spi_cleanup; master->setup = bfin_spi_setup; master->transfer_one_message = bfin_spi_transfer_one_message; - master->bits_per_word_mask = BIT(32 - 1) | BIT(16 - 1) | BIT(8 - 1); + master->bits_per_word_mask = SPI_BPW_MASK(32) | SPI_BPW_MASK(16) | + SPI_BPW_MASK(8); drv_data = spi_master_get_devdata(master); drv_data->master = master; |