mtd: Add __nand_calculate_ecc() to NAND ECC functions