projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
40b82c2
)
spi: spidev: Use SPI_MODE_X_MASK
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Mon, 10 May 2021 13:12:12 +0000
(16:12 +0300)
committer
Mark Brown
<broonie@kernel.org>
Tue, 11 May 2021 14:42:47 +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-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spidev.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spidev.c
b/drivers/spi/spidev.c
index f56e0e975a4691209a13e008c4f5197af3eea509..24e9469ea35bbc6375eea15e8782f4a0818fd20c 100644
(file)
--- a/
drivers/spi/spidev.c
+++ b/
drivers/spi/spidev.c
@@
-59,7
+59,7
@@
static DECLARE_BITMAP(minors, N_SPI_MINORS);
*
* REVISIT should changing those flags be privileged?
*/
-#define SPI_MODE_MASK (SPI_
CPHA | SPI_CPOL
| SPI_CS_HIGH \
+#define SPI_MODE_MASK (SPI_
MODE_X_MASK
| SPI_CS_HIGH \
| SPI_LSB_FIRST | SPI_3WIRE | SPI_LOOP \
| SPI_NO_CS | SPI_READY | SPI_TX_DUAL \
| SPI_TX_QUAD | SPI_TX_OCTAL | SPI_RX_DUAL \