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
@@ -211,9 +211,9 @@ static int txx9ndfmc_correct_data(struct mtd_info *mtd, unsigned char *buf,
|
||||
return corrected;
|
||||
}
|
||||
|
||||
static void txx9ndfmc_enable_hwecc(struct mtd_info *mtd, int mode)
|
||||
static void txx9ndfmc_enable_hwecc(struct nand_chip *chip, int mode)
|
||||
{
|
||||
struct platform_device *dev = mtd_to_platdev(mtd);
|
||||
struct platform_device *dev = mtd_to_platdev(nand_to_mtd(chip));
|
||||
u32 mcr = txx9ndfmc_read(dev, TXX9_NDFMCR);
|
||||
|
||||
mcr &= ~TXX9_NDFMCR_ECC_ALL;
|
||||
|
Reference in New Issue
Block a user