aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files/include/linux
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2021-12-12 07:25:41 +0100
committerFelix Fietkau <nbd@nbd.name>2022-01-13 18:33:06 +0100
commitbcf91fe8849bf4467637fd5570806837ba93dbd4 (patch)
tree926d7a632efd029cf95842775ea29f4acf62b21e /target/linux/generic/files/include/linux
parent2d19e6c6a42cbbd6ab53c4c673ba71303ef6a70b (diff)
downloadupstream-bcf91fe8849bf4467637fd5570806837ba93dbd4.tar.gz
upstream-bcf91fe8849bf4467637fd5570806837ba93dbd4.tar.bz2
upstream-bcf91fe8849bf4467637fd5570806837ba93dbd4.zip
kernel: move mediatek BMT support patch to generic patches
Preparation for supporting BMT on MT7621. Move source files to the files/ subdirectory in order to simplify maintenance Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/generic/files/include/linux')
-rw-r--r--target/linux/generic/files/include/linux/mtd/mtk_bmt.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/target/linux/generic/files/include/linux/mtd/mtk_bmt.h b/target/linux/generic/files/include/linux/mtd/mtk_bmt.h
new file mode 100644
index 0000000000..cbb6d04d89
--- /dev/null
+++ b/target/linux/generic/files/include/linux/mtd/mtk_bmt.h
@@ -0,0 +1,18 @@
+#ifndef __MTK_BMT_H
+#define __MTK_BMT_H
+
+#ifdef CONFIG_MTD_NAND_MTK_BMT
+int mtk_bmt_attach(struct mtd_info *mtd);
+void mtk_bmt_detach(struct mtd_info *mtd);
+#else
+static inline int mtk_bmt_attach(struct mtd_info *mtd)
+{
+ return 0;
+}
+
+static inline void mtk_bmt_detach(struct mtd_info *mtd)
+{
+}
+#endif
+
+#endif