mtd: rawnand: Pass a nand_chip object to chip->setup_read_retry()
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 the chip->setup_read_retry() hook. 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
aa36ff25ff
commit
2e7f1cec27
@@ -113,9 +113,8 @@ static int hynix_nand_reg_write_op(struct nand_chip *chip, u8 addr, u8 val)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int hynix_nand_setup_read_retry(struct mtd_info *mtd, int retry_mode)
|
||||
static int hynix_nand_setup_read_retry(struct nand_chip *chip, int retry_mode)
|
||||
{
|
||||
struct nand_chip *chip = mtd_to_nand(mtd);
|
||||
struct hynix_nand *hynix = nand_get_manufacturer_data(chip);
|
||||
const u8 *values;
|
||||
int i, ret;
|
||||
|
Reference in New Issue
Block a user