diff options
| author | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-02-03 13:06:15 -0500 |
|---|---|---|
| committer | Boris Brezillon <boris.brezillon@free-electrons.com> | 2016-04-19 16:05:56 -0400 |
| commit | 41b207a70d3a86b9e2eede155e87838234c7cbd5 (patch) | |
| tree | bb4d67d4d372ed58187c446df6c0e755a61b1326 /include/linux/mtd | |
| parent | 1bd0b24737710697e0a850fb1983dcdce1d01196 (diff) | |
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.h | 3 |
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 { | |||
| 748 | void *priv; | 748 | void *priv; |
| 749 | }; | 749 | }; |
| 750 | 750 | ||
| 751 | extern const struct mtd_ooblayout_ops nand_ooblayout_sp_ops; | ||
| 752 | extern const struct mtd_ooblayout_ops nand_ooblayout_lp_ops; | ||
| 753 | |||
| 751 | static inline void nand_set_flash_node(struct nand_chip *chip, | 754 | static inline void nand_set_flash_node(struct nand_chip *chip, |
| 752 | struct device_node *np) | 755 | struct device_node *np) |
| 753 | { | 756 | { |
