diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2021-05-10 17:13:43 +0300 |
---|---|---|
committer | Vignesh Raghavendra <vigneshr@ti.com> | 2021-05-26 19:15:00 +0300 |
commit | 5c26d52c9e5c9a22d04b805470e1143716b69789 (patch) | |
tree | 1fdb0437fd5175daa02693092b3eb775b09bf16c /drivers/mtd | |
parent | c4681547bcce777daf576925a966ffa824edd09d (diff) | |
download | linux-5c26d52c9e5c9a22d04b805470e1143716b69789.tar.xz |
mtd: spi-nor: nxp-spifi: 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>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Reviewed-by: Michael Walle <michael@walle.cc>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/spi-nor/controllers/nxp-spifi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/spi-nor/controllers/nxp-spifi.c b/drivers/mtd/spi-nor/controllers/nxp-spifi.c index 5703e8313980..2635c80231bb 100644 --- a/drivers/mtd/spi-nor/controllers/nxp-spifi.c +++ b/drivers/mtd/spi-nor/controllers/nxp-spifi.c @@ -326,7 +326,7 @@ static int nxp_spifi_setup_flash(struct nxp_spifi *spifi, ctrl |= SPIFI_CTRL_DUAL; } - switch (mode & (SPI_CPHA | SPI_CPOL)) { + switch (mode & SPI_MODE_X_MASK) { case SPI_MODE_0: ctrl &= ~SPIFI_CTRL_MODE3; break; |