mtd: rawnand: Pass a nand_chip object to ecc->write_xxx() hooks
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 or remove the mtd_info object when both are passed. Let's tackle all ecc->write_xxx() hooks at once. 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
b976168757
commit
767eb6fbde
@@ -332,9 +332,8 @@ out:
|
||||
}
|
||||
|
||||
static int
|
||||
micron_nand_write_page_on_die_ecc(struct mtd_info *mtd, struct nand_chip *chip,
|
||||
const uint8_t *buf, int oob_required,
|
||||
int page)
|
||||
micron_nand_write_page_on_die_ecc(struct nand_chip *chip, const uint8_t *buf,
|
||||
int oob_required, int page)
|
||||
{
|
||||
int ret;
|
||||
|
||||
@@ -342,7 +341,7 @@ micron_nand_write_page_on_die_ecc(struct mtd_info *mtd, struct nand_chip *chip,
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
ret = nand_write_page_raw(mtd, chip, buf, oob_required, page);
|
||||
ret = nand_write_page_raw(chip, buf, oob_required, page);
|
||||
micron_nand_on_die_ecc_setup(chip, false);
|
||||
|
||||
return ret;
|
||||
|
Reference in New Issue
Block a user