diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2021-05-10 15:12:16 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-05-11 16:42:51 +0200 |
commit | 4ccf05579b9d0f15443a0edc860e2be7472ccfc1 (patch) | |
tree | 3c7ae8c2d1416e720f18a75648151a1304bec3f1 | |
parent | spi: omap-uwire: Use SPI_MODE_X_MASK (diff) | |
download | linux-4ccf05579b9d0f15443a0edc860e2be7472ccfc1.tar.xz linux-4ccf05579b9d0f15443a0edc860e2be7472ccfc1.zip |
spi: ppc4xx: 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-6-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | drivers/spi/spi-ppc4xx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-ppc4xx.c b/drivers/spi/spi-ppc4xx.c index 76874a7cca9b..59d201acbb39 100644 --- a/drivers/spi/spi-ppc4xx.c +++ b/drivers/spi/spi-ppc4xx.c @@ -235,7 +235,7 @@ static int spi_ppc4xx_setup(struct spi_device *spi) */ cs->mode = SPI_PPC4XX_MODE_SPE; - switch (spi->mode & (SPI_CPHA | SPI_CPOL)) { + switch (spi->mode & SPI_MODE_X_MASK) { case SPI_MODE_0: cs->mode |= SPI_CLK_MODE0; break; |