Now that we have moved the information to the chip level, let's remove all the unused flags and fields.
Showing the changes to include/linux (1 of 1 file). Show all
Unified · Split
| @@ -93,10 +93,7 @@ struct nand_bbt_descr { · 92 unmodified lines | ||
| 93 | 93 | #define NAND_BBT_WRITE 0x00002000 |
| 94 | 94 | /* Read and write back block contents when writing bbt */ |
| 95 | 95 | #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 | + | |
| 100 | 97 | /* |
| 101 | 98 | * Use a flash based bad block table. By default, OOB identifier is saved in |
| 102 | 99 | * OOB area. This option is passed to the default bad block table function. |
| @@ -123,13 +120,6 @@ struct nand_bbt_descr { · 20 unmodified lines | ||
| 123 | 120 | /* The maximum number of blocks to scan for a bbt */ |
| 124 | 121 | #define NAND_BBT_SCAN_MAXBLOCKS 4 |
| 125 | 122 | |
| 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 | − | |
| 133 | 123 | /* |
| 134 | 124 | * Bad block scanning errors |
| 135 | 125 | */ |
| @@ -140,7 +130,6 @@ struct nand_bbt_descr { · 4 unmodified lines | ||
| 140 | 130 | /** |
| 141 | 131 | * struct bbm_info - [GENERIC] Bad Block Table data structure |
| 142 | 132 | * @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 | |
| 144 | 133 | * @options: options for this descriptor |
| 145 | 134 | * @bbt: [INTERN] bad block table pointer |
| 146 | 135 | * @isbad_bbt: function to determine if a block is bad |
| @@ -150,7 +139,6 @@ struct nand_bbt_descr { · 3 unmodified lines | ||
| 150 | 139 | */ |
| 151 | 140 | struct bbm_info { |
| 152 | 141 | int bbt_erase_shift; |
| 153 | − int badblockpos; | |
| 154 | 142 | int options; |
| 155 | 143 | |
| 156 | 144 | uint8_t *bbt; |