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/devices | |
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/devices')
-rw-r--r-- | drivers/mtd/devices/doc2000.c | 4 | ||||
-rw-r--r-- | drivers/mtd/devices/doc2001.c | 4 | ||||
-rw-r--r-- | drivers/mtd/devices/doc2001plus.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/drivers/mtd/devices/doc2000.c b/drivers/mtd/devices/doc2000.c index 8c9703309496..e9fad9151219 100644 --- a/drivers/mtd/devices/doc2000.c +++ b/drivers/mtd/devices/doc2000.c | |||
@@ -927,7 +927,7 @@ static int doc_read_oob(struct mtd_info *mtd, loff_t ofs, | |||
927 | uint8_t *buf = ops->oobbuf; | 927 | uint8_t *buf = ops->oobbuf; |
928 | size_t len = ops->len; | 928 | size_t len = ops->len; |
929 | 929 | ||
930 | BUG_ON(ops->mode != MTD_OOB_PLACE); | 930 | BUG_ON(ops->mode != MTD_OPS_PLACE_OOB); |
931 | 931 | ||
932 | ofs += ops->ooboffs; | 932 | ofs += ops->ooboffs; |
933 | 933 | ||
@@ -1091,7 +1091,7 @@ static int doc_write_oob(struct mtd_info *mtd, loff_t ofs, | |||
1091 | struct DiskOnChip *this = mtd->priv; | 1091 | struct DiskOnChip *this = mtd->priv; |
1092 | int ret; | 1092 | int ret; |
1093 | 1093 | ||
1094 | BUG_ON(ops->mode != MTD_OOB_PLACE); | 1094 | BUG_ON(ops->mode != MTD_OPS_PLACE_OOB); |
1095 | 1095 | ||
1096 | mutex_lock(&this->lock); | 1096 | mutex_lock(&this->lock); |
1097 | ret = doc_write_oob_nolock(mtd, ofs + ops->ooboffs, ops->len, | 1097 | ret = doc_write_oob_nolock(mtd, ofs + ops->ooboffs, ops->len, |
diff --git a/drivers/mtd/devices/doc2001.c b/drivers/mtd/devices/doc2001.c index 3d2b459cea92..a3f7a27499be 100644 --- a/drivers/mtd/devices/doc2001.c +++ b/drivers/mtd/devices/doc2001.c | |||
@@ -631,7 +631,7 @@ static int doc_read_oob(struct mtd_info *mtd, loff_t ofs, | |||
631 | uint8_t *buf = ops->oobbuf; | 631 | uint8_t *buf = ops->oobbuf; |
632 | size_t len = ops->len; | 632 | size_t len = ops->len; |
633 | 633 | ||
634 | BUG_ON(ops->mode != MTD_OOB_PLACE); | 634 | BUG_ON(ops->mode != MTD_OPS_PLACE_OOB); |
635 | 635 | ||
636 | ofs += ops->ooboffs; | 636 | ofs += ops->ooboffs; |
637 | 637 | ||
@@ -689,7 +689,7 @@ static int doc_write_oob(struct mtd_info *mtd, loff_t ofs, | |||
689 | uint8_t *buf = ops->oobbuf; | 689 | uint8_t *buf = ops->oobbuf; |
690 | size_t len = ops->len; | 690 | size_t len = ops->len; |
691 | 691 | ||
692 | BUG_ON(ops->mode != MTD_OOB_PLACE); | 692 | BUG_ON(ops->mode != MTD_OPS_PLACE_OOB); |
693 | 693 | ||
694 | ofs += ops->ooboffs; | 694 | ofs += ops->ooboffs; |
695 | 695 | ||
diff --git a/drivers/mtd/devices/doc2001plus.c b/drivers/mtd/devices/doc2001plus.c index d28c9d99979f..99351bc3e0ed 100644 --- a/drivers/mtd/devices/doc2001plus.c +++ b/drivers/mtd/devices/doc2001plus.c | |||
@@ -834,7 +834,7 @@ static int doc_read_oob(struct mtd_info *mtd, loff_t ofs, | |||
834 | uint8_t *buf = ops->oobbuf; | 834 | uint8_t *buf = ops->oobbuf; |
835 | size_t len = ops->len; | 835 | size_t len = ops->len; |
836 | 836 | ||
837 | BUG_ON(ops->mode != MTD_OOB_PLACE); | 837 | BUG_ON(ops->mode != MTD_OPS_PLACE_OOB); |
838 | 838 | ||
839 | ofs += ops->ooboffs; | 839 | ofs += ops->ooboffs; |
840 | 840 | ||
@@ -919,7 +919,7 @@ static int doc_write_oob(struct mtd_info *mtd, loff_t ofs, | |||
919 | uint8_t *buf = ops->oobbuf; | 919 | uint8_t *buf = ops->oobbuf; |
920 | size_t len = ops->len; | 920 | size_t len = ops->len; |
921 | 921 | ||
922 | BUG_ON(ops->mode != MTD_OOB_PLACE); | 922 | BUG_ON(ops->mode != MTD_OPS_PLACE_OOB); |
923 | 923 | ||
924 | ofs += ops->ooboffs; | 924 | ofs += ops->ooboffs; |
925 | 925 | ||