aboutsummaryrefslogtreecommitdiff
path: root/include/nand.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-09-22 14:50:35 -0400
committerTom Rini <trini@konsulko.com>2021-10-06 09:16:23 -0400
commit1cefed1e39f0038ac6afd9e0c48b8b85fb458fbc (patch)
tree373fc4f509981fb035efc0c9d62664b681bdf83b /include/nand.h
parentc0ad62c5f7535bf13b24aab103356f827f40d0cd (diff)
downloadu-boot-1cefed1e39f0038ac6afd9e0c48b8b85fb458fbc.zip
u-boot-1cefed1e39f0038ac6afd9e0c48b8b85fb458fbc.tar.gz
u-boot-1cefed1e39f0038ac6afd9e0c48b8b85fb458fbc.tar.bz2
nand.h: Cleanup linux/mtd/rawnand.h usage
We only include <linux/mtd/rawnand.h> in <nand.h> for the forward declaration of struct nand_chip, so do that directly. Then, include <linux/mtd/rawnand.h> where required directly. Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/nand.h')
-rw-r--r--include/nand.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/nand.h b/include/nand.h
index 80dd646..75c6051 100644
--- a/include/nand.h
+++ b/include/nand.h
@@ -31,7 +31,6 @@ unsigned long nand_size(void);
#include <linux/compat.h>
#include <linux/mtd/mtd.h>
-#include <linux/mtd/rawnand.h>
int nand_mtd_to_devnum(struct mtd_info *mtd);
@@ -39,6 +38,8 @@ int nand_mtd_to_devnum(struct mtd_info *mtd);
void board_nand_init(void);
int nand_register(int devnum, struct mtd_info *mtd);
#else
+struct nand_chip;
+
extern int board_nand_init(struct nand_chip *nand);
#endif