mtd: introduce mtd_write_oob interface
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:

committed by
David Woodhouse

parent
fd2819bbc9
commit
a2cc5ba075
@@ -343,7 +343,7 @@ static int sm_write_sector(struct sm_ftl *ftl,
|
||||
ops.ooblen = SM_OOB_SIZE;
|
||||
ops.oobbuf = (void *)oob;
|
||||
|
||||
ret = mtd->write_oob(mtd, sm_mkoffset(ftl, zone, block, boffset), &ops);
|
||||
ret = mtd_write_oob(mtd, sm_mkoffset(ftl, zone, block, boffset), &ops);
|
||||
|
||||
/* Now we assume that hardware will catch write bitflip errors */
|
||||
/* If you are paranoid, use CONFIG_MTD_NAND_VERIFY_WRITE */
|
||||
|
Reference in New Issue
Block a user