diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2011-12-23 11:29:55 -0500 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2012-01-09 13:25:24 -0500 |
commit | a2cc5ba075f9bc837d0b4d4ec7328dcefc11859d (patch) | |
tree | a5f2c88ddd21028247bfaf02ca336dd501ed3a5f /drivers/mtd/mtdchar.c | |
parent | fd2819bbc92fc98bed5d612e4acbe16b6326f6bf (diff) |
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>
Diffstat (limited to 'drivers/mtd/mtdchar.c')
-rw-r--r-- | drivers/mtd/mtdchar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mtd/mtdchar.c b/drivers/mtd/mtdchar.c index e74f570a7b93..234e3d27143c 100644 --- a/drivers/mtd/mtdchar.c +++ b/drivers/mtd/mtdchar.c | |||
@@ -325,7 +325,7 @@ static ssize_t mtdchar_write(struct file *file, const char __user *buf, size_t c | |||
325 | ops.ooboffs = 0; | 325 | ops.ooboffs = 0; |
326 | ops.len = len; | 326 | ops.len = len; |
327 | 327 | ||
328 | ret = mtd->write_oob(mtd, *ppos, &ops); | 328 | ret = mtd_write_oob(mtd, *ppos, &ops); |
329 | retlen = ops.retlen; | 329 | retlen = ops.retlen; |
330 | break; | 330 | break; |
331 | } | 331 | } |
@@ -426,7 +426,7 @@ static int mtdchar_writeoob(struct file *file, struct mtd_info *mtd, | |||
426 | return PTR_ERR(ops.oobbuf); | 426 | return PTR_ERR(ops.oobbuf); |
427 | 427 | ||
428 | start &= ~((uint64_t)mtd->writesize - 1); | 428 | start &= ~((uint64_t)mtd->writesize - 1); |
429 | ret = mtd->write_oob(mtd, start, &ops); | 429 | ret = mtd_write_oob(mtd, start, &ops); |
430 | 430 | ||
431 | if (ops.oobretlen > 0xFFFFFFFFU) | 431 | if (ops.oobretlen > 0xFFFFFFFFU) |
432 | ret = -EOVERFLOW; | 432 | ret = -EOVERFLOW; |
@@ -609,7 +609,7 @@ static int mtdchar_write_ioctl(struct mtd_info *mtd, | |||
609 | ops.oobbuf = NULL; | 609 | ops.oobbuf = NULL; |
610 | } | 610 | } |
611 | 611 | ||
612 | ret = mtd->write_oob(mtd, (loff_t)req.start, &ops); | 612 | ret = mtd_write_oob(mtd, (loff_t)req.start, &ops); |
613 | 613 | ||
614 | kfree(ops.datbuf); | 614 | kfree(ops.datbuf); |
615 | kfree(ops.oobbuf); | 615 | kfree(ops.oobbuf); |