]> www.infradead.org Git - users/willy/xarray.git/commit
mtd: spi-nand: Isolate the MTD read logic in a helper
authorMiquel Raynal <miquel.raynal@bootlin.com>
Mon, 26 Aug 2024 10:14:06 +0000 (12:14 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 6 Sep 2024 15:00:04 +0000 (17:00 +0200)
commit79da17072e22a802a321ca44c9082ee2e855e72b
treecf27caf43f9b7b6261fe289984495e403f07e261
parent8adf1ac24ba8ee34b8fd36ebf159004ec472fca0
mtd: spi-nand: Isolate the MTD read logic in a helper

There is currently only a single path for performing page reads as
requested by the MTD layer. Soon there will be two:
- a "regular" page read
- a continuous page read

Let's extract the page read logic in a dedicated helper, so the
introduction of continuous page reads will be as easy as checking whether
continuous reads shall/can be used and calling one helper or the other.

There is not behavioral change intended.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20240826101412.20644-4-miquel.raynal@bootlin.com
drivers/mtd/nand/spi/core.c