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>
Tento commit je obsažen v:

odevzdal
Artem Bityutskiy

rodič
905c6bcdb4
revize
0612b9ddc2
@@ -834,7 +834,7 @@ static int doc_read_oob(struct mtd_info *mtd, loff_t ofs,
|
||||
uint8_t *buf = ops->oobbuf;
|
||||
size_t len = ops->len;
|
||||
|
||||
BUG_ON(ops->mode != MTD_OOB_PLACE);
|
||||
BUG_ON(ops->mode != MTD_OPS_PLACE_OOB);
|
||||
|
||||
ofs += ops->ooboffs;
|
||||
|
||||
@@ -919,7 +919,7 @@ static int doc_write_oob(struct mtd_info *mtd, loff_t ofs,
|
||||
uint8_t *buf = ops->oobbuf;
|
||||
size_t len = ops->len;
|
||||
|
||||
BUG_ON(ops->mode != MTD_OOB_PLACE);
|
||||
BUG_ON(ops->mode != MTD_OPS_PLACE_OOB);
|
||||
|
||||
ofs += ops->ooboffs;
|
||||
|
||||
|
Odkázat v novém úkolu
Zablokovat Uživatele