static int mtdblock_readsect(struct mtd_blktrans_dev *dev, unsigned long block, char *buf) { struct mtdblk_dev *mtdblk = mtdblks[dev->devnum]; #ifdef CONFIG_MOT_FEAT_SECURE_DRM if (is_protected_device(mtdblk->mtd)) { return -EPERM; } #endif /* CONFIG_MOT_FEAT_SECURE_DRM */ return do_cached_read(mtdblk, block<<9, 512, buf); }
static int mtdblock_readsect(struct mtd_blktrans_dev *dev, unsigned long block, char *buf) { struct mtdblk_dev *mtdblk = container_of(dev, struct mtdblk_dev, mbd); return do_cached_read(mtdblk, block<<9, 512, buf); }
static int mtdblock_readsect(struct mtd_blktrans_dev *dev, unsigned long block, char *buf) { struct mtdblk_dev *mtdblk = mtdblks[dev->devnum]; return do_cached_read(mtdblk, block<<9, 512, buf); }
static int ubiblk_readsect(struct ubi_blktrans_dev *dev, unsigned long block, char *buf) { struct ubiblk_dev *ubiblk = ubiblks[dev->devnum]; return do_cached_read(ubiblk, block, 512, buf); }