aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/raw/docg4.c
diff options
context:
space:
mode:
authorMiquel Raynal <miquel.raynal@bootlin.com>2018-03-19 14:47:19 +0100
committerBoris Brezillon <boris.brezillon@bootlin.com>2018-03-20 09:33:22 +0100
commitb958758e686aebe84672acc8871aca87d04f13a3 (patch)
tree9d62e14a692d8a33b83fb7603db43c5eb836a981 /drivers/mtd/nand/raw/docg4.c
parentmtd: rawnand: rename default ->onfi_get/set_features() implementations (diff)
downloadlinux-dev-b958758e686aebe84672acc8871aca87d04f13a3.tar.xz
linux-dev-b958758e686aebe84672acc8871aca87d04f13a3.zip
mtd: rawnand: rename SET/GET FEATURES related functions
SET/GET FEATURES are flagged ONFI-compliant because of their name. This is not accurate as non-ONFI NAND chips support it and use it. Rename the hooks and helpers to remove the "onfi" prefix. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Diffstat (limited to 'drivers/mtd/nand/raw/docg4.c')
-rw-r--r--drivers/mtd/nand/raw/docg4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/raw/docg4.c b/drivers/mtd/nand/raw/docg4.c
index 72f1327c4430..1314aa99b9ab 100644
--- a/drivers/mtd/nand/raw/docg4.c
+++ b/drivers/mtd/nand/raw/docg4.c
@@ -1269,8 +1269,8 @@ static void __init init_mtd_structs(struct mtd_info *mtd)
nand->read_buf = docg4_read_buf;
nand->write_buf = docg4_write_buf16;
nand->erase = docg4_erase_block;
- nand->onfi_set_features = nand_onfi_get_set_features_notsupp;
- nand->onfi_get_features = nand_onfi_get_set_features_notsupp;
+ nand->set_features = nand_get_set_features_notsupp;
+ nand->get_features = nand_get_set_features_notsupp;
nand->ecc.read_page = docg4_read_page;
nand->ecc.write_page = docg4_write_page;
nand->ecc.read_page_raw = docg4_read_page_raw;