Commit 9fd6b37a authored by Brian Norris's avatar Brian Norris Committed by David Woodhouse

mtd: nand: rename "no_bbt" descriptors to "no_oob"

These descriptors are for BBT's that don't use OOB; the "no_bbt" name doesn't
really make sense.
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 947c9adb
...@@ -1274,7 +1274,7 @@ static struct nand_bbt_descr bbt_mirror_descr = { ...@@ -1274,7 +1274,7 @@ static struct nand_bbt_descr bbt_mirror_descr = {
.pattern = mirror_pattern .pattern = mirror_pattern
}; };
static struct nand_bbt_descr bbt_main_no_bbt_descr = { static struct nand_bbt_descr bbt_main_no_oob_descr = {
.options = NAND_BBT_LASTBLOCK | NAND_BBT_CREATE | NAND_BBT_WRITE .options = NAND_BBT_LASTBLOCK | NAND_BBT_CREATE | NAND_BBT_WRITE
| NAND_BBT_2BIT | NAND_BBT_VERSION | NAND_BBT_PERCHIP | NAND_BBT_2BIT | NAND_BBT_VERSION | NAND_BBT_PERCHIP
| NAND_BBT_NO_OOB, | NAND_BBT_NO_OOB,
...@@ -1284,7 +1284,7 @@ static struct nand_bbt_descr bbt_main_no_bbt_descr = { ...@@ -1284,7 +1284,7 @@ static struct nand_bbt_descr bbt_main_no_bbt_descr = {
.pattern = bbt_pattern .pattern = bbt_pattern
}; };
static struct nand_bbt_descr bbt_mirror_no_bbt_descr = { static struct nand_bbt_descr bbt_mirror_no_oob_descr = {
.options = NAND_BBT_LASTBLOCK | NAND_BBT_CREATE | NAND_BBT_WRITE .options = NAND_BBT_LASTBLOCK | NAND_BBT_CREATE | NAND_BBT_WRITE
| NAND_BBT_2BIT | NAND_BBT_VERSION | NAND_BBT_PERCHIP | NAND_BBT_2BIT | NAND_BBT_VERSION | NAND_BBT_PERCHIP
| NAND_BBT_NO_OOB, | NAND_BBT_NO_OOB,
...@@ -1355,8 +1355,8 @@ int nand_default_bbt(struct mtd_info *mtd) ...@@ -1355,8 +1355,8 @@ int nand_default_bbt(struct mtd_info *mtd)
/* Use the default pattern descriptors */ /* Use the default pattern descriptors */
if (!this->bbt_td) { if (!this->bbt_td) {
if (this->bbt_options & NAND_BBT_NO_OOB) { if (this->bbt_options & NAND_BBT_NO_OOB) {
this->bbt_td = &bbt_main_no_bbt_descr; this->bbt_td = &bbt_main_no_oob_descr;
this->bbt_md = &bbt_mirror_no_bbt_descr; this->bbt_md = &bbt_mirror_no_oob_descr;
} else { } else {
this->bbt_td = &bbt_main_descr; this->bbt_td = &bbt_main_descr;
this->bbt_md = &bbt_mirror_descr; this->bbt_md = &bbt_mirror_descr;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment