mtd: nand: Pass mode information to nand_page_io_req
authorBoris Brezillon <boris.brezillon@bootlin.com>
Thu, 16 Aug 2018 15:30:10 +0000 (17:30 +0200)
committerJagan Teki <jagan@amarulasolutions.com>
Thu, 20 Sep 2018 14:40:49 +0000 (20:10 +0530)
commitf86787280b37e381f8d82f48583434d62dd16e27
tree449f4a48a248dd524baf2ec3b98df521a0aa98e0
parentb95db8d33a1e920801816e47ffc5c6f18acce024
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>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
include/linux/mtd/nand.h