History

mtd: nand: Cleanup flags and fields for bad block marker position

Now that we have moved the information to the chip level, let's remove all the unused flags and fields.

Frieder Schrempf committed 7 years ago

Commit c9024671 parent bfd15c91 file · +1 −13Browse files

Unified · Split

include/linux/mtd/bbm.h+1−13
@@ -93,10 +93,7 @@ struct nand_bbt_descr { · 92 unmodified lines
9393 #define NAND_BBT_WRITE 0x00002000
9494 /* Read and write back block contents when writing bbt */
9595 #define NAND_BBT_SAVECONTENT 0x00004000
96−/* Search good / bad pattern on the first and the second page */
97−#define NAND_BBT_SCAN2NDPAGE 0x00008000
98−/* Search good / bad pattern on the last page of the eraseblock */
99−#define NAND_BBT_SCANLASTPAGE 0x00010000
96+
10097 /*
10198 * Use a flash based bad block table. By default, OOB identifier is saved in
10299 * OOB area. This option is passed to the default bad block table function.
@@ -123,13 +120,6 @@ struct nand_bbt_descr { · 20 unmodified lines
123120 /* The maximum number of blocks to scan for a bbt */
124121 #define NAND_BBT_SCAN_MAXBLOCKS 4
125122
126−/*
127− * Constants for oob configuration
128− */
129−#define NAND_SMALL_BADBLOCK_POS 5
130−#define NAND_LARGE_BADBLOCK_POS 0
131−#define ONENAND_BADBLOCK_POS 0
132−
133123 /*
134124 * Bad block scanning errors
135125 */
@@ -140,7 +130,6 @@ struct nand_bbt_descr { · 4 unmodified lines
140130 /**
141131 * struct bbm_info - [GENERIC] Bad Block Table data structure
142132 * @bbt_erase_shift: [INTERN] number of address bits in a bbt entry
143− * @badblockpos: [INTERN] position of the bad block marker in the oob area
144133 * @options: options for this descriptor
145134 * @bbt: [INTERN] bad block table pointer
146135 * @isbad_bbt: function to determine if a block is bad
@@ -150,7 +139,6 @@ struct nand_bbt_descr { · 3 unmodified lines
150139 */
151140 struct bbm_info {
152141 int bbt_erase_shift;
153− int badblockpos;
154142 int options;
155143
156144 uint8_t *bbt;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t