diff options
author | Baruch Siach <baruch.siach@siklu.com> | 2022-04-11 20:45:28 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-04-19 14:13:48 +0200 |
commit | 178d0cbbfe8ec652083058968c7a27485eaa33d2 (patch) | |
tree | d0a942c14e83a96a449f2ad94d8c5acfedbdd6e2 /drivers/spi/spidev.c | |
parent | spi: add SPI_RX_CPHA_FLIP mode bit (diff) | |
download | linux-178d0cbbfe8ec652083058968c7a27485eaa33d2.tar.xz linux-178d0cbbfe8ec652083058968c7a27485eaa33d2.zip |
spi: spidev: add SPI_RX_CPHA_FLIP
Allow userspace to set SPI_RX_CPHA_FLIP mode bit using the
SPI_IOC_WR_MODE32 ioctl.
Signed-off-by: Baruch Siach <baruch.siach@siklu.com>
Link: https://lore.kernel.org/r/6ae31ad24f8252418878b21a8759a04b78726dac.1649702729.git.baruch@tkos.co.il
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spidev.c')
-rw-r--r-- | drivers/spi/spidev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index b2cefe93b3a0..b2775d82d2d7 100644 --- a/drivers/spi/spidev.c +++ b/drivers/spi/spidev.c @@ -63,7 +63,8 @@ static_assert(N_SPI_MINORS > 0 && N_SPI_MINORS <= 256); | SPI_LSB_FIRST | SPI_3WIRE | SPI_LOOP \ | SPI_NO_CS | SPI_READY | SPI_TX_DUAL \ | SPI_TX_QUAD | SPI_TX_OCTAL | SPI_RX_DUAL \ - | SPI_RX_QUAD | SPI_RX_OCTAL) + | SPI_RX_QUAD | SPI_RX_OCTAL \ + | SPI_RX_CPHA_FLIP) struct spidev_data { dev_t devt; |