mtd: nand: Pass mode information to nand_page_io_req
authorBoris Brezillon <boris.brezillon@bootlin.com>
Tue, 15 May 2018 15:08:21 +0000 (17:08 +0200)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Fri, 1 Jun 2018 12:53:50 +0000 (14:53 +0200)
commitf567c71f4f91d173795a2f46d6fc493387ce084d
treee03928046ae2279a0fa50843439b4505073aa2c9
parent782d1967d0479ffd59412b2f3179c8bb35f50ff6
mtd: nand: Pass mode information to nand_page_io_req

The NAND sub-layers are likely to need the MTD_OPS_XXX mode information
in order to decide if they should enable/disable ECC or how they should
place the OOB bytes in the provided OOB buffer.

Add a field to nand_page_io_req to pass this information.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Tested-by: Frieder Schrempf <frieder.schrempf@exceet.de>
Reviewed-by: Frieder Schrempf <frieder.schrempf@exceet.de>
include/linux/mtd/nand.h