projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de8978c
)
spi: rb4xx: Use SPI_BPW_MASK to set bits_per_word_mask
author
Axel Lin
<axel.lin@ingics.com>
Tue, 2 Oct 2018 10:00:27 +0000
(18:00 +0800)
committer
Mark Brown
<broonie@kernel.org>
Wed, 10 Oct 2018 11:48:06 +0000
(12:48 +0100)
Improve readability a bit.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-rb4xx.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-rb4xx.c
b/drivers/spi/spi-rb4xx.c
index
3641d0e
..
fbbf9a1
100644
(file)
--- a/
drivers/spi/spi-rb4xx.c
+++ b/
drivers/spi/spi-rb4xx.c
@@
-159,7
+159,7
@@
static int rb4xx_spi_probe(struct platform_device *pdev)
master->bus_num = 0;
master->num_chipselect = 3;
master->mode_bits = SPI_TX_DUAL;
- master->bits_per_word_mask =
BIT(7
);
+ master->bits_per_word_mask =
SPI_BPW_MASK(8
);
master->flags = SPI_MASTER_MUST_TX;
master->transfer_one = rb4xx_transfer_one;
master->set_cs = rb4xx_set_cs;