mtd: introduce mtd_write 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
329ad399a9
commit
eda95cbf75
@@ -331,7 +331,7 @@ static ssize_t mtdchar_write(struct file *file, const char __user *buf, size_t c
|
||||
}
|
||||
|
||||
default:
|
||||
ret = (*(mtd->write))(mtd, *ppos, len, &retlen, kbuf);
|
||||
ret = mtd_write(mtd, *ppos, len, &retlen, kbuf);
|
||||
}
|
||||
if (!ret) {
|
||||
*ppos += retlen;
|
||||
|
Reference in New Issue
Block a user