mtd: introduce mtd_read interface

Signed-off-by: Artem Bityutskiy <[email protected]>
Signed-off-by: David Woodhouse <[email protected]>
This commit is contained in:
Artem Bityutskiy 2011-12-23 17:30:16 +02:00 • committed by David Woodhouse
commit 329ad399a9
35 changed files with 152 additions and 135 deletions

View file

@ -20,7 +20,7 @@ static int logfs_mtd_read(struct super_block *sb, loff_t ofs, size_t len,
size_t retlen;
int ret;
ret = mtd->read(mtd, ofs, len, &retlen, buf);
ret = mtd_read(mtd, ofs, len, &retlen, buf);
BUG_ON(ret == -EINVAL);
if (ret)
return ret;