diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2021-05-10 16:12:14 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-05-11 15:42:49 +0100 |
commit | a2f2db6b2a8708f6ac592a362e34fb330f874cea (patch) | |
tree | a46fd726b0a06edc0e6688638fddd9df58b090b4 /drivers/spi | |
parent | 56f47edf33fb55ab9381f61d60cf34c7578f3d75 (diff) |
spi: oc-tiny: Use SPI_MODE_X_MASK
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>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-oc-tiny.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-oc-tiny.c b/drivers/spi/spi-oc-tiny.c index f3843f0ff260..38c14c4e4e21 100644 --- 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; } |