spi: mxic: Create a helper to ease the start of an operation
authorMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 27 Jan 2022 09:18:06 +0000 (10:18 +0100)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 10 Feb 2022 08:32:30 +0000 (09:32 +0100)
commitd1b64bb28907b0ae4eff6befd6a1a476fbb68424
tree5e8ac316edaf8d5f6bbc009c1cdc74fc3bbbcd72
parentb7b64db74ea53f51d316077c1267bb4d0792ef4b
spi: mxic: Create a helper to ease the start of an operation

Create the mxic_spi_mem_prep_op_cfg() helper to provide the content to
write to the register controlling the next IO command. This helper will
soon be used by the dirmap implementation and having this code
factorized out earlier will clarify this addition.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/linux-mtd/20220127091808.1043392-12-miquel.raynal@bootlin.com
drivers/spi/spi-mxic.c