aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mtd
diff options
context:
space:
mode:
authorMaxim Levitsky <maximlevitsky@gmail.com>2010-02-22 13:39:38 -0500
committerDavid Woodhouse <David.Woodhouse@intel.com>2010-02-26 13:02:07 -0500
commite0b58d0a7005cd4b9c7fa4694a437a2d86719c13 (patch)
tree24eef139ef7ab9d37125f9d508a6cf712155a20e /include/linux/mtd
parentb64d39d8b03fea88417d53715ccbebf71d4dcc9f (diff)
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')
-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 {
401 int subpagesize; 401 int subpagesize;
402 uint8_t cellinfo; 402 uint8_t cellinfo;
403 int badblockpos; 403 int badblockpos;
404 int badblockbits;
404 405
405 flstate_t state; 406 flstate_t state;
406 407