mtd: introduce mtd_read_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
7ae79d7ff1
commit
fd2819bbc9
@@ -175,7 +175,7 @@ static int read_raw_oob(struct mtd_info *mtd, loff_t offs, uint8_t *buf)
|
||||
ops.oobbuf = buf;
|
||||
ops.datbuf = NULL;
|
||||
|
||||
ret = mtd->read_oob(mtd, offs, &ops);
|
||||
ret = mtd_read_oob(mtd, offs, &ops);
|
||||
if (ret < 0 || ops.oobretlen != OOB_SIZE)
|
||||
return -1;
|
||||
|
||||
|
Reference in New Issue
Block a user