aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mtd
diff options
context:
space:
mode:
authorBoris Brezillon <boris.brezillon@free-electrons.com>2016-02-03 19:06:15 +0100
committerBoris Brezillon <boris.brezillon@free-electrons.com>2016-04-19 22:05:56 +0200
commit41b207a70d3a86b9e2eede155e87838234c7cbd5 (patch)
treebb4d67d4d372ed58187c446df6c0e755a61b1326 /include/linux/mtd
parentmtd: docg3: switch to mtd_ooblayout_ops (diff)
downloadlinux-dev-41b207a70d3a86b9e2eede155e87838234c7cbd5.tar.xz
linux-dev-41b207a70d3a86b9e2eede155e87838234c7cbd5.zip
mtd: nand: implement the default mtd_ooblayout_ops
Replace the default nand_ecclayout definitions for large and small page devices with the equivalent mtd_ooblayout_ops. Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'include/linux/mtd')
-rw-r--r--include/linux/mtd/nand.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index 7e06afb8552c..f2ded7b1b3b8 100644
--- a/include/linux/mtd/nand.h
+++ b/include/linux/mtd/nand.h
@@ -748,6 +748,9 @@ struct nand_chip {
void *priv;
};
+extern const struct mtd_ooblayout_ops nand_ooblayout_sp_ops;
+extern const struct mtd_ooblayout_ops nand_ooblayout_lp_ops;
+
static inline void nand_set_flash_node(struct nand_chip *chip,
struct device_node *np)
{