summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2023-01-11 18:40:13 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2023-01-16 11:22:48 +0100
commit42f922e1ca40f70e0b75ca3c83851630c88d1671 (patch)
tree8df1f680eafb766f76b6d03307154cdbb72bee56 /include/linux
parentd5d2f29accaacc545a46c9f32ab5a470d27622ec (diff)
downloadbarebox-42f922e1ca40f70e0b75ca3c83851630c88d1671.tar.gz
mtd: nand: define nand_get_(small|large)_page_ooblayout
Adopt the Linux nomenclature to make future ports easier. No functional change. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20230111174023.1719129-6-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mtd/rawnand.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/mtd/rawnand.h b/include/linux/mtd/rawnand.h
index 87e37fa9a3..0df142098d 100644
--- a/include/linux/mtd/rawnand.h
+++ b/include/linux/mtd/rawnand.h
@@ -1168,8 +1168,8 @@ struct nand_chip {
unsigned int bbt_type;
};
-extern const struct mtd_ooblayout_ops nand_ooblayout_sp_ops;
-extern const struct mtd_ooblayout_ops nand_ooblayout_lp_ops;
+const struct mtd_ooblayout_ops *nand_get_small_page_ooblayout(void);
+const struct mtd_ooblayout_ops *nand_get_large_page_ooblayout(void);
static inline struct nand_chip *mtd_to_nand(struct mtd_info *mtd)
{