diff options
author | Maxim Levitsky <maximlevitsky@gmail.com> | 2010-02-22 20:39:38 +0200 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2010-02-26 18:02:07 +0000 |
commit | e0b58d0a7005cd4b9c7fa4694a437a2d86719c13 (patch) | |
tree | 24eef139ef7ab9d37125f9d508a6cf712155a20e /include/linux/mtd | |
parent | b64d39d8b03fea88417d53715ccbebf71d4dcc9f (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.h | 1 |
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; |