aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
authorRichard Genoud <richard.genoud@gmail.com>2012-09-11 09:50:54 -0400
committerDavid Woodhouse <David.Woodhouse@intel.com>2012-09-29 10:54:10 -0400
commit61de9da657e8c52606d45ae67dfa187111bf9b55 (patch)
tree05236937dea6bd1cc4406096ee47e2790abc3455 /drivers/mtd
parentb2bc415b6b7bb240b967f6dd95007a2cf7b4c424 (diff)
mtd: nand: use NAND_BBT_SCAN_MAXBLOCKS
In nand_bbt.c, a hardcoded value was used instead of the define meant for that, so we use the define. There's no functional change. Signed-off-by: Richard Genoud <richard.genoud@gmail.com> Acked-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/nand/nand_bbt.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/mtd/nand/nand_bbt.c b/drivers/mtd/nand/nand_bbt.c
index 2f744dd90740..916d6e9c0ab1 100644
--- a/drivers/mtd/nand/nand_bbt.c
+++ b/drivers/mtd/nand/nand_bbt.c
@@ -62,6 +62,7 @@
62#include <linux/slab.h> 62#include <linux/slab.h>
63#include <linux/types.h> 63#include <linux/types.h>
64#include <linux/mtd/mtd.h> 64#include <linux/mtd/mtd.h>
65#include <linux/mtd/bbm.h>
65#include <linux/mtd/nand.h> 66#include <linux/mtd/nand.h>
66#include <linux/mtd/nand_ecc.h> 67#include <linux/mtd/nand_ecc.h>
67#include <linux/bitops.h> 68#include <linux/bitops.h>
@@ -1258,7 +1259,7 @@ static struct nand_bbt_descr bbt_main_descr = {
1258 .offs = 8, 1259 .offs = 8,
1259 .len = 4, 1260 .len = 4,
1260 .veroffs = 12, 1261 .veroffs = 12,
1261 .maxblocks = 4, 1262 .maxblocks = NAND_BBT_SCAN_MAXBLOCKS,
1262 .pattern = bbt_pattern 1263 .pattern = bbt_pattern
1263}; 1264};
1264 1265
@@ -1268,7 +1269,7 @@ static struct nand_bbt_descr bbt_mirror_descr = {
1268 .offs = 8, 1269 .offs = 8,
1269 .len = 4, 1270 .len = 4,
1270 .veroffs = 12, 1271 .veroffs = 12,
1271 .maxblocks = 4, 1272 .maxblocks = NAND_BBT_SCAN_MAXBLOCKS,
1272 .pattern = mirror_pattern 1273 .pattern = mirror_pattern
1273}; 1274};
1274 1275
@@ -1278,7 +1279,7 @@ static struct nand_bbt_descr bbt_main_no_oob_descr = {
1278 | NAND_BBT_NO_OOB, 1279 | NAND_BBT_NO_OOB,
1279 .len = 4, 1280 .len = 4,
1280 .veroffs = 4, 1281 .veroffs = 4,
1281 .maxblocks = 4, 1282 .maxblocks = NAND_BBT_SCAN_MAXBLOCKS,
1282 .pattern = bbt_pattern 1283 .pattern = bbt_pattern
1283}; 1284};
1284 1285
@@ -1288,7 +1289,7 @@ static struct nand_bbt_descr bbt_mirror_no_oob_descr = {
1288 | NAND_BBT_NO_OOB, 1289 | NAND_BBT_NO_OOB,
1289 .len = 4, 1290 .len = 4,
1290 .veroffs = 4, 1291 .veroffs = 4,
1291 .maxblocks = 4, 1292 .maxblocks = NAND_BBT_SCAN_MAXBLOCKS,
1292 .pattern = mirror_pattern 1293 .pattern = mirror_pattern
1293}; 1294};
1294 1295