summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-03-02 10:17:10 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2016-04-08 13:35:32 +0200
commit3abbbbd7c3fb4f5aa376800b11fcf0d2975225a7 (patch)
treecaff0588cde252df93ac43b9a11be87588a7ac48
parentfa61152d972a47edcad1a3da0a6500db194c1a77 (diff)
downloadbarebox-3abbbbd7c3fb4f5aa376800b11fcf0d2975225a7.tar.gz
mtd: nand: export nand_check_erased_buf
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/mtd/nand/nand_base.c2
-rw-r--r--include/linux/mtd/nand.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c
index 7eef287..79c1edd 100644
--- a/drivers/mtd/nand/nand_base.c
+++ b/drivers/mtd/nand/nand_base.c
@@ -957,7 +957,7 @@ EXPORT_SYMBOL(nand_lock);
* bitflips_threshold, or -ERROR_CODE for bitflips in excess of the
* threshold.
*/
-static int nand_check_erased_buf(void *buf, int len, int bitflips_threshold)
+int nand_check_erased_buf(void *buf, int len, int bitflips_threshold)
{
const unsigned char *bitmap = buf;
int bitflips = 0;
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index b787842..5beec39 100644
--- a/include/linux/mtd/nand.h
+++ b/include/linux/mtd/nand.h
@@ -50,6 +50,7 @@ extern int nand_check_erased_ecc_chunk(void *data, int datalen,
void *ecc, int ecclen,
void *extraoob, int extraooblen,
int bitflips_threshold);
+int nand_check_erased_buf(void *buf, int len, int bitflips_threshold);
/* The maximum number of NAND chips in an array */
#define NAND_MAX_CHIPS 8