mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-01 10:45:49 +00:00
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>
This commit is contained in:
parent
fdb217a388
commit
4ccf05579b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user