summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/raw/nand_hynix.c
diff options
context:
space:
mode:
authorBoris Brezillon2018-09-07 00:38:36 +0200
committerMiquel Raynal2018-10-03 11:12:25 +0200
commitbf6065c6c08fa3ed7bdf8d28b8062ce8e58c1543 (patch)
tree39f9c81b3b68a6dde627c542a03d2241b99f81e4 /drivers/mtd/nand/raw/nand_hynix.c
parentmtd: rawnand: Deprecate ->{read, write}_{byte, buf}() hooks (diff)
downloadkernel-qcow2-linux-bf6065c6c08fa3ed7bdf8d28b8062ce8e58c1543.tar.gz
kernel-qcow2-linux-bf6065c6c08fa3ed7bdf8d28b8062ce8e58c1543.tar.xz
kernel-qcow2-linux-bf6065c6c08fa3ed7bdf8d28b8062ce8e58c1543.zip
mtd: rawnand: Deprecate ->cmd_ctrl() and ->cmdfunc()
Those hooks have been replaced by ->exec_op(). Move them to the nand_legacy struct. Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'drivers/mtd/nand/raw/nand_hynix.c')
-rw-r--r--drivers/mtd/nand/raw/nand_hynix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/raw/nand_hynix.c b/drivers/mtd/nand/raw/nand_hynix.c
index 6a2f3efad153..7eec0d96909a 100644
--- a/drivers/mtd/nand/raw/nand_hynix.c
+++ b/drivers/mtd/nand/raw/nand_hynix.c
@@ -88,7 +88,7 @@ static int hynix_nand_cmd_op(struct nand_chip *chip, u8 cmd)
return nand_exec_op(chip, &op);
}
- chip->cmdfunc(chip, cmd, -1, -1);
+ chip->legacy.cmdfunc(chip, cmd, -1, -1);
return 0;
}
@@ -107,7 +107,7 @@ static int hynix_nand_reg_write_op(struct nand_chip *chip, u8 addr, u8 val)
return nand_exec_op(chip, &op);
}
- chip->cmdfunc(chip, NAND_CMD_NONE, column, -1);
+ chip->legacy.cmdfunc(chip, NAND_CMD_NONE, column, -1);
chip->legacy.write_byte(chip, val);
return 0;