mtd: rawnand: Pass a nand_chip object to ecc->calculate()
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->calculate()'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
ec47636cd7
commit
af37d2c3a8
@@ -345,7 +345,7 @@ static void lpc32xx_nand_ecc_enable(struct nand_chip *chip, int mode)
|
||||
/*
|
||||
* Calculates the ECC for the data
|
||||
*/
|
||||
static int lpc32xx_nand_ecc_calculate(struct mtd_info *mtd,
|
||||
static int lpc32xx_nand_ecc_calculate(struct nand_chip *chip,
|
||||
const unsigned char *buf,
|
||||
unsigned char *code)
|
||||
{
|
||||
|
Reference in New Issue
Block a user