diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2011-12-23 11:27:05 -0500 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-01-09 13:25:23 -0500 |
commit | fd2819bbc92fc98bed5d612e4acbe16b6326f6bf (patch) | |
tree | 114f2a130cb854c74707eb805854fe048f65ac14 /drivers/mtd/mtdchar.c | |
parent | 7ae79d7ff1769a3e9c47076b46e4eaa11204a2ee (diff) |
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>
Diffstat (limited to 'drivers/mtd/mtdchar.c')
-rw-r--r-- | drivers/mtd/mtdchar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/mtdchar.c b/drivers/mtd/mtdchar.c index 922da31d2c6b..e74f570a7b93 100644 --- a/drivers/mtd/mtdchar.c +++ b/drivers/mtd/mtdchar.c | |||
@@ -227,7 +227,7 @@ static ssize_t mtdchar_read(struct file *file, char __user *buf, size_t count, | |||
227 | ops.oobbuf = NULL; | 227 | ops.oobbuf = NULL; |
228 | ops.len = len; | 228 | ops.len = len; |
229 | 229 | ||
230 | ret = mtd->read_oob(mtd, *ppos, &ops); | 230 | ret = mtd_read_oob(mtd, *ppos, &ops); |
231 | retlen = ops.retlen; | 231 | retlen = ops.retlen; |
232 | break; | 232 | break; |
233 | } | 233 | } |
@@ -471,7 +471,7 @@ static int mtdchar_readoob(struct file *file, struct mtd_info *mtd, | |||
471 | return -ENOMEM; | 471 | return -ENOMEM; |
472 | 472 | ||
473 | start &= ~((uint64_t)mtd->writesize - 1); | 473 | start &= ~((uint64_t)mtd->writesize - 1); |
474 | ret = mtd->read_oob(mtd, start, &ops); | 474 | ret = mtd_read_oob(mtd, start, &ops); |
475 | 475 | ||
476 | if (put_user(ops.oobretlen, retp)) | 476 | if (put_user(ops.oobretlen, retp)) |
477 | ret = -EFAULT; | 477 | ret = -EFAULT; |