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
@@ -227,7 +227,7 @@ static ssize_t mtdchar_read(struct file *file, char __user *buf, size_t count,
|
||||
ops.oobbuf = NULL;
|
||||
ops.len = len;
|
||||
|
||||
ret = mtd->read_oob(mtd, *ppos, &ops);
|
||||
ret = mtd_read_oob(mtd, *ppos, &ops);
|
||||
retlen = ops.retlen;
|
||||
break;
|
||||
}
|
||||
@@ -471,7 +471,7 @@ static int mtdchar_readoob(struct file *file, struct mtd_info *mtd,
|
||||
return -ENOMEM;
|
||||
|
||||
start &= ~((uint64_t)mtd->writesize - 1);
|
||||
ret = mtd->read_oob(mtd, start, &ops);
|
||||
ret = mtd_read_oob(mtd, start, &ops);
|
||||
|
||||
if (put_user(ops.oobretlen, retp))
|
||||
ret = -EFAULT;
|
||||
|
Reference in New Issue
Block a user