[2/4] spi: mxic: Ensure width is respected in spi-mem operations
diff mbox series

Message ID 20190919202504.9619-2-miquel.raynal@bootlin.com
State Accepted
Commit 539ff2488af87f25f2c090fd74ced55bd966e5a9
Headers show
Series
  • [1/4] spi: mxic: Fix transmit path
Related show

Commit Message

Miquel Raynal Sept. 19, 2019, 8:25 p.m. UTC
Make use of a core helper to ensure the desired width is respected
when calling spi-mem operators.

Suggested-by: Boris Brezillon <bbrezillon@kernel.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
---
 drivers/spi/spi-mxic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/drivers/spi/spi-mxic.c b/drivers/spi/spi-mxic.c
index eaa7a6a9044d..d3d47ab70dcb 100644
--- a/drivers/spi/spi-mxic.c
+++ b/drivers/spi/spi-mxic.c
@@ -342,7 +342,7 @@  static bool mxic_spi_mem_supports_op(struct spi_mem *mem,
 	if (op->addr.nbytes > 7)
 		return false;
 
-	return true;
+	return spi_mem_default_supports_op(mem, op);
 }
 
 static int mxic_spi_mem_exec_op(struct spi_mem *mem,