diff options
author | Brian Norris <computersforpeace@gmail.com> | 2011-08-30 21:45:40 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@intel.com> | 2011-09-11 08:28:59 -0400 |
commit | 0612b9ddc2eeda014dd805c87c752b342d8f80f0 (patch) | |
tree | 7691ee548ab6da1e7df946a75abd96a814208d8e /drivers/mtd/nand/nand_bbt.c | |
parent | 905c6bcdb42616da717a9bd6c0c5870dbd90b09e (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/nand/nand_bbt.c')
-rw-r--r-- | drivers/mtd/nand/nand_bbt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mtd/nand/nand_bbt.c b/drivers/mtd/nand/nand_bbt.c index 6aa8125772b8..c488bcb84c90 100644 --- a/drivers/mtd/nand/nand_bbt.c +++ b/drivers/mtd/nand/nand_bbt.c | |||
@@ -302,7 +302,7 @@ static int scan_read_raw_oob(struct mtd_info *mtd, uint8_t *buf, loff_t offs, | |||
302 | struct mtd_oob_ops ops; | 302 | struct mtd_oob_ops ops; |
303 | int res; | 303 | int res; |
304 | 304 | ||
305 | ops.mode = MTD_OOB_RAW; | 305 | ops.mode = MTD_OPS_RAW; |
306 | ops.ooboffs = 0; | 306 | ops.ooboffs = 0; |
307 | ops.ooblen = mtd->oobsize; | 307 | ops.ooblen = mtd->oobsize; |
308 | 308 | ||
@@ -350,7 +350,7 @@ static int scan_write_bbt(struct mtd_info *mtd, loff_t offs, size_t len, | |||
350 | { | 350 | { |
351 | struct mtd_oob_ops ops; | 351 | struct mtd_oob_ops ops; |
352 | 352 | ||
353 | ops.mode = MTD_OOB_PLACE; | 353 | ops.mode = MTD_OPS_PLACE_OOB; |
354 | ops.ooboffs = 0; | 354 | ops.ooboffs = 0; |
355 | ops.ooblen = mtd->oobsize; | 355 | ops.ooblen = mtd->oobsize; |
356 | ops.datbuf = buf; | 356 | ops.datbuf = buf; |
@@ -433,7 +433,7 @@ static int scan_block_fast(struct mtd_info *mtd, struct nand_bbt_descr *bd, | |||
433 | ops.oobbuf = buf; | 433 | ops.oobbuf = buf; |
434 | ops.ooboffs = 0; | 434 | ops.ooboffs = 0; |
435 | ops.datbuf = NULL; | 435 | ops.datbuf = NULL; |
436 | ops.mode = MTD_OOB_PLACE; | 436 | ops.mode = MTD_OPS_PLACE_OOB; |
437 | 437 | ||
438 | for (j = 0; j < len; j++) { | 438 | for (j = 0; j < len; j++) { |
439 | /* | 439 | /* |
@@ -672,7 +672,7 @@ static int write_bbt(struct mtd_info *mtd, uint8_t *buf, | |||
672 | ops.ooblen = mtd->oobsize; | 672 | ops.ooblen = mtd->oobsize; |
673 | ops.ooboffs = 0; | 673 | ops.ooboffs = 0; |
674 | ops.datbuf = NULL; | 674 | ops.datbuf = NULL; |
675 | ops.mode = MTD_OOB_PLACE; | 675 | ops.mode = MTD_OPS_PLACE_OOB; |
676 | 676 | ||
677 | if (!rcode) | 677 | if (!rcode) |
678 | rcode = 0xff; | 678 | rcode = 0xff; |