nand_correct_data — [NAND Interface] Detect and correct bit error(s)
int nand_correct_data
(struct mtd_info * mtd, u_char * dat, u_char * read_ecc, u_char * calc_ecc);
MTD block structure
raw data read from the chip
ECC from the chip
the ECC calculated from raw data
Detect and correct a 1 bit error for 256 byte block