path: root/drivers/mtd/nand/atmel_nand_nfc.h
diff options
authorBo Shen <>2014-06-12 15:58:45 +0800
committerBrian Norris <>2014-07-21 19:39:55 -0700
commitb38576667cdcf7a646843b07666faae11cc63e9c (patch)
treeb07fec491086eaacb1cbb874328482e592396ce2 /drivers/mtd/nand/atmel_nand_nfc.h
parent974647ea8a13021a91d558df61d598bcabf73439 (diff)
mtd: atmel_nand: make ecc parameters same as definition
If the ecc parameter is not the same as definition, when the mtd core check these parameters, it will give the error result. Take the following as an example: Calculate how many bits can be corrected in one page. According to the ecc parameters definition, one page correct bits = (mtd->writesize * ecc->strength) / ecc->size take the following use case as an example: mtd->writesize = 2048 bytes ecc->strength = 4 bytes (for 512 bytes) before this patch, the ecc->size = 2048, so the result is 4 bytes. after this patch, the ecc->size = 512, so the result is 16 bytes. So, align the ecc parameters the same as definition to correct this kind of error. Signed-off-by: Bo Shen <> Acked-by: Josh Wu <> Signed-off-by: Brian Norris <>
Diffstat (limited to 'drivers/mtd/nand/atmel_nand_nfc.h')
0 files changed, 0 insertions, 0 deletions