aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/inftlcore.c
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2011-08-30 21:45:40 -0400
committerArtem Bityutskiy <artem.bityutskiy@intel.com>2011-09-11 08:28:59 -0400
commit0612b9ddc2eeda014dd805c87c752b342d8f80f0 (patch)
tree7691ee548ab6da1e7df946a75abd96a814208d8e /drivers/mtd/inftlcore.c
parent905c6bcdb42616da717a9bd6c0c5870dbd90b09e (diff)
mtd: rename MTD_OOB_* to MTD_OPS_*
These modes are not necessarily for OOB only. Particularly, MTD_OOB_RAW affected operations on in-band page data as well. To clarify these options and to emphasize that their effect is applied per-operation, we change the primary prefix to MTD_OPS_. Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
Diffstat (limited to 'drivers/mtd/inftlcore.c')
-rw-r--r--drivers/mtd/inftlcore.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mtd/inftlcore.c b/drivers/mtd/inftlcore.c
index 21aa981e42cd..652065e47a79 100644
--- a/drivers/mtd/inftlcore.c
+++ b/drivers/mtd/inftlcore.c
@@ -152,7 +152,7 @@ int inftl_read_oob(struct mtd_info *mtd, loff_t offs, size_t len,
152 struct mtd_oob_ops ops; 152 struct mtd_oob_ops ops;
153 int res; 153 int res;
154 154
155 ops.mode = MTD_OOB_PLACE; 155 ops.mode = MTD_OPS_PLACE_OOB;
156 ops.ooboffs = offs & (mtd->writesize - 1); 156 ops.ooboffs = offs & (mtd->writesize - 1);
157 ops.ooblen = len; 157 ops.ooblen = len;
158 ops.oobbuf = buf; 158 ops.oobbuf = buf;
@@ -172,7 +172,7 @@ int inftl_write_oob(struct mtd_info *mtd, loff_t offs, size_t len,
172 struct mtd_oob_ops ops; 172 struct mtd_oob_ops ops;
173 int res; 173 int res;
174 174
175 ops.mode = MTD_OOB_PLACE; 175 ops.mode = MTD_OPS_PLACE_OOB;
176 ops.ooboffs = offs & (mtd->writesize - 1); 176 ops.ooboffs = offs & (mtd->writesize - 1);
177 ops.ooblen = len; 177 ops.ooblen = len;
178 ops.oobbuf = buf; 178 ops.oobbuf = buf;
@@ -192,7 +192,7 @@ static int inftl_write(struct mtd_info *mtd, loff_t offs, size_t len,
192 struct mtd_oob_ops ops; 192 struct mtd_oob_ops ops;
193 int res; 193 int res;
194 194
195 ops.mode = MTD_OOB_PLACE; 195 ops.mode = MTD_OPS_PLACE_OOB;
196 ops.ooboffs = offs; 196 ops.ooboffs = offs;
197 ops.ooblen = mtd->oobsize; 197 ops.ooblen = mtd->oobsize;
198 ops.oobbuf = oob; 198 ops.oobbuf = oob;