Commit 5c26d52c authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Vignesh Raghavendra

mtd: spi-nor: nxp-spifi: Use SPI_MODE_X_MASK

Use SPI_MODE_X_MASK instead of open coded variant.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarVignesh Raghavendra <vigneshr@ti.com>
Reviewed-by: default avatarMichael Walle <michael@walle.cc>
parent c4681547
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment