diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2021-05-10 16:12:17 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-05-11 15:42:52 +0100 |
commit | 038b9de42269f33aca3e3741214c863a4e9328d0 (patch) | |
tree | a63fb43f0bd242d6dcf242544f315a767e0dccff /drivers/spi/spi-uniphier.c | |
parent | 4ccf05579b9d0f15443a0edc860e2be7472ccfc1 (diff) | |
download | lwn-038b9de42269f33aca3e3741214c863a4e9328d0.tar.gz lwn-038b9de42269f33aca3e3741214c863a4e9328d0.zip |
spi: uniphier: 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-7-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-uniphier.c')
-rw-r--r-- | drivers/spi/spi-uniphier.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-uniphier.c b/drivers/spi/spi-uniphier.c index 6a9ef8ee3cc9..8900e51e1a1c 100644 --- a/drivers/spi/spi-uniphier.c +++ b/drivers/spi/spi-uniphier.c @@ -142,7 +142,7 @@ static void uniphier_spi_set_mode(struct spi_device *spi) * FSTRT start frame timing * 0: rising edge of clock, 1: falling edge of clock */ - switch (spi->mode & (SPI_CPOL | SPI_CPHA)) { + switch (spi->mode & SPI_MODE_X_MASK) { case SPI_MODE_0: /* CKPHS=1, CKINIT=0, CKDLY=1, FSTRT=0 */ val1 = SSI_CKS_CKPHS | SSI_CKS_CKDLY; |