mtd: rawnand: Pass a nand_chip object to ecc->hwctl()
Let's make the raw NAND API consistent by patching all helpers and hooks to take a nand_chip object instead of an mtd_info one. Now is ecc->hwctl()'s turn. Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
This commit is contained in:

committed by
Miquel Raynal

parent
2b356ab46e
commit
ec47636cd7
@@ -337,7 +337,7 @@ static void lpc32xx_wp_disable(struct lpc32xx_nand_host *host)
|
||||
/*
|
||||
* Prepares SLC for transfers with H/W ECC enabled
|
||||
*/
|
||||
static void lpc32xx_nand_ecc_enable(struct mtd_info *mtd, int mode)
|
||||
static void lpc32xx_nand_ecc_enable(struct nand_chip *chip, int mode)
|
||||
{
|
||||
/* Hardware ECC is enabled automatically in hardware as needed */
|
||||
}
|
||||
|
Reference in New Issue
Block a user