summaryrefslogtreecommitdiffstats
path: root/include/nand.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-04-09 15:59:07 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-04-28 11:43:09 +0200
commit33d4f7cb3da852420693e2a4f3782fb9a09a3861 (patch)
tree0ae5a99f1201c2755a5384e357cb88085dd86af8 /include/nand.h
parentb32cd8df87b87ef744365138e145b829c02eb719 (diff)
downloadbarebox-33d4f7cb3da852420693e2a4f3782fb9a09a3861.tar.gz
barebox-33d4f7cb3da852420693e2a4f3782fb9a09a3861.tar.xz
mtd: refactor bb device creation
This refactors the code so that we get a mtd_add_bb which can be used to create a bb dev on a mtd_info. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/nand.h')
-rw-r--r--include/nand.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/nand.h b/include/nand.h
index a0e77cc8cd..1da35d0ce8 100644
--- a/include/nand.h
+++ b/include/nand.h
@@ -7,6 +7,7 @@ struct nand_bb;
#ifdef CONFIG_NAND
int dev_add_bb_dev(const char *filename, const char *name);
int dev_remove_bb_dev(const char *name);
+struct cdev *mtd_add_bb(struct mtd_info *mtd, const char *name);
#else
static inline int dev_add_bb_dev(const char *filename, const char *name) {
return 0;
@@ -15,6 +16,11 @@ static inline int dev_remove_bb_dev(const char *name)
{
return 0;
}
+
+static inline struct cdev *mtd_add_bb(struct mtd_info *mtd, const char *name)
+{
+ return NULL;
+}
#endif
#endif /* __NAND_H__ */