summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-11-01 10:33:14 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-11-03 23:20:59 +0100
commit4104dd917388943f5b0ae87d1360738675c338b0 (patch)
tree5f168ba90f855831d3cb763091ae1a1733fc3aa0 /include
parent0f9c76614a7f91b92cd76dd08cfca7d77bbe7000 (diff)
downloadbarebox-4104dd917388943f5b0ae87d1360738675c338b0.tar.gz
barebox-4104dd917388943f5b0ae87d1360738675c338b0.tar.xz
mtd: introduce mtd_block_isbad
this allow to do not provide block_isbad at mtd driver level as example spi flash Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mtd/mtd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h
index 8114967e6b..be8ad71df4 100644
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -251,6 +251,8 @@ static inline void mtd_erase_callback(struct erase_info *instr)
}
#endif
+int mtd_block_isbad(struct mtd_info *mtd, loff_t ofs);
+
/*
* Debugging macro and defines
*/