Skip to content

Commit c902467

Browse files
fschrempfmiquelraynal
authored andcommitted
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. Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de> Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
1 parent bfd15c9 commit c902467

1 file changed

Lines changed: 1 addition & 13 deletions

File tree

‎include/linux/mtd/bbm.h‎

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,7 @@ struct nand_bbt_descr {
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 {
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 {
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 {
150139
*/
151140
struct bbm_info {
152141
int bbt_erase_shift;
153-
int badblockpos;
154142
int options;
155143

156144
uint8_t *bbt;

0 commit comments

Comments
 (0)