Commit 539ff248 authored by Miquel Raynal's avatar Miquel Raynal Committed by Mark Brown

spi: mxic: Ensure width is respected in spi-mem operations

Make use of a core helper to ensure the desired width is respected
when calling spi-mem operators.
Suggested-by: default avatarBoris Brezillon <bbrezillon@kernel.org>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20190919202504.9619-2-miquel.raynal@bootlin.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent e61bb114
...@@ -346,7 +346,7 @@ static bool mxic_spi_mem_supports_op(struct spi_mem *mem, ...@@ -346,7 +346,7 @@ static bool mxic_spi_mem_supports_op(struct spi_mem *mem,
if (op->addr.nbytes > 7) if (op->addr.nbytes > 7)
return false; return false;
return true; return spi_mem_default_supports_op(mem, op);
} }
static int mxic_spi_mem_exec_op(struct spi_mem *mem, static int mxic_spi_mem_exec_op(struct spi_mem *mem,
......
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