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>
This commit is contained in:
18
target/linux/generic/files/include/linux/mtd/mtk_bmt.h
Normal file
18
target/linux/generic/files/include/linux/mtd/mtk_bmt.h
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user