spi: mxic: Ensure width is respected in spi-mem operations
authorMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 19 Sep 2019 20:25:02 +0000 (22:25 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 1 Oct 2019 11:33:58 +0000 (12:33 +0100)
commit539ff2488af87f25f2c090fd74ced55bd966e5a9
tree9efd25cf8b8b6a7c861a0a010d8181fe91335b45
parente61bb114d41ddf6ae5bf05a0109fc13116550c7d
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: Boris Brezillon <bbrezillon@kernel.org>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20190919202504.9619-2-miquel.raynal@bootlin.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-mxic.c