mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
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:
parent
aa36ff25ff
commit
2e7f1cec27
4 changed files with 8 additions and 12 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue