projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ccf055
)
spi: uniphier: Use SPI_MODE_X_MASK
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Mon, 10 May 2021 13:12:17 +0000
(16:12 +0300)
committer
Mark Brown
<broonie@kernel.org>
Tue, 11 May 2021 14:42:52 +0000
(15:42 +0100)
Use SPI_MODE_X_MASK instead of open coded variant.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link:
https://lore.kernel.org/r/20210510131217.49357-7-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-uniphier.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-uniphier.c
b/drivers/spi/spi-uniphier.c
index
6a9ef8e
..
8900e51
100644
(file)
--- a/
drivers/spi/spi-uniphier.c
+++ b/
drivers/spi/spi-uniphier.c
@@
-142,7
+142,7
@@
static void uniphier_spi_set_mode(struct spi_device *spi)
* FSTRT start frame timing
* 0: rising edge of clock, 1: falling edge of clock
*/
- switch (spi->mode &
(SPI_CPOL | SPI_CPHA)
) {
+ switch (spi->mode &
SPI_MODE_X_MASK
) {
case SPI_MODE_0:
/* CKPHS=1, CKINIT=0, CKDLY=1, FSTRT=0 */
val1 = SSI_CKS_CKPHS | SSI_CKS_CKDLY;