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:
56f47ed
)
spi: oc-tiny: Use SPI_MODE_X_MASK
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Mon, 10 May 2021 13:12:14 +0000
(16:12 +0300)
committer
Mark Brown
<broonie@kernel.org>
Tue, 11 May 2021 14:42:49 +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-4-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-oc-tiny.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-oc-tiny.c
b/drivers/spi/spi-oc-tiny.c
index
f3843f0
..
38c14c4
100644
(file)
--- a/
drivers/spi/spi-oc-tiny.c
+++ b/
drivers/spi/spi-oc-tiny.c
@@
-86,7
+86,7
@@
static int tiny_spi_setup(struct spi_device *spi)
hw->speed_hz = spi->max_speed_hz;
hw->baud = tiny_spi_baud(spi, hw->speed_hz);
}
- hw->mode = spi->mode &
(SPI_CPOL | SPI_CPHA)
;
+ hw->mode = spi->mode &
SPI_MODE_X_MASK
;
return 0;
}