summaryrefslogtreecommitdiffstats
path: root/include/linux/mtd/nand.h
diff options
context:
space:
mode:
authorMaxim Levitsky <maximlevitsky@gmail.com>2010-02-22 20:39:38 +0200
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-02-26 18:02:07 +0000
commite0b58d0a7005cd4b9c7fa4694a437a2d86719c13 (patch)
tree24eef139ef7ab9d37125f9d508a6cf712155a20e /include/linux/mtd/nand.h
parentb64d39d8b03fea88417d53715ccbebf71d4dcc9f (diff)
downloadlinux-e0b58d0a7005cd4b9c7fa4694a437a2d86719c13.tar.gz
linux-e0b58d0a7005cd4b9c7fa4694a437a2d86719c13.tar.bz2
linux-e0b58d0a7005cd4b9c7fa4694a437a2d86719c13.zip
mtd: nand: add ->badblockbits for minimum number of set bits in bad block byte
This can be used to protect against bitflips in that field, but now mostly for smartmedia. Signed-off-by: Maxim Levitsky <maximlevitsky@gmail.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'include/linux/mtd/nand.h')
-rw-r--r--include/linux/mtd/nand.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index 48bc2c54302c..f2d4a1ac14b8 100644
--- a/include/linux/mtd/nand.h
+++ b/include/linux/mtd/nand.h
@@ -401,6 +401,7 @@ struct nand_chip {
int subpagesize;
uint8_t cellinfo;
int badblockpos;
+ int badblockbits;
flstate_t state;