Loading drivers/mtd/tests/readtest.c +6 −1 Original line number Diff line number Diff line Loading @@ -35,6 +35,10 @@ static int dev = -EINVAL; module_param(dev, int, S_IRUGO); MODULE_PARM_DESC(dev, "MTD device number to use"); static int use_auto_oob; module_param(use_auto_oob, int, S_IRUGO); MODULE_PARM_DESC(use_auto_oob, "Set use_auto_oob = 1 to use MTD_OPS_AUTO_OOB when writing to oob"); static struct mtd_info *mtd; static unsigned char *iobuf; static unsigned char *iobuf1; Loading @@ -61,7 +65,8 @@ static int read_eraseblock_by_page(int ebnum) if (mtd->oobsize) { struct mtd_oob_ops ops; ops.mode = MTD_OPS_PLACE_OOB; ops.mode = use_auto_oob ? MTD_OPS_AUTO_OOB : MTD_OPS_PLACE_OOB; ops.len = 0; ops.retlen = 0; ops.ooblen = mtd->oobsize; Loading Loading
drivers/mtd/tests/readtest.c +6 −1 Original line number Diff line number Diff line Loading @@ -35,6 +35,10 @@ static int dev = -EINVAL; module_param(dev, int, S_IRUGO); MODULE_PARM_DESC(dev, "MTD device number to use"); static int use_auto_oob; module_param(use_auto_oob, int, S_IRUGO); MODULE_PARM_DESC(use_auto_oob, "Set use_auto_oob = 1 to use MTD_OPS_AUTO_OOB when writing to oob"); static struct mtd_info *mtd; static unsigned char *iobuf; static unsigned char *iobuf1; Loading @@ -61,7 +65,8 @@ static int read_eraseblock_by_page(int ebnum) if (mtd->oobsize) { struct mtd_oob_ops ops; ops.mode = MTD_OPS_PLACE_OOB; ops.mode = use_auto_oob ? MTD_OPS_AUTO_OOB : MTD_OPS_PLACE_OOB; ops.len = 0; ops.retlen = 0; ops.ooblen = mtd->oobsize; Loading