mtd: nand: fix style
Remove some extra spaces Consistently use '0x' prefix for bitfield-like constants Spelling: "aplies" -> "applies" Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
This commit is contained in:
parent
1196ac5a99
commit
596d74527a
1 changed files with 14 additions and 14 deletions
|
@ -250,7 +250,7 @@ static int read_bbt(struct mtd_info *mtd, uint8_t *buf, int page, int num,
|
|||
* @mtd: MTD device structure
|
||||
* @buf: temporary buffer
|
||||
* @td: descriptor for the bad block table
|
||||
* @chip: read the table for a specific chip, -1 read all chips; aplies only if
|
||||
* @chip: read the table for a specific chip, -1 read all chips; applies only if
|
||||
* NAND_BBT_PERCHIP option is set
|
||||
*
|
||||
* Read the bad block table for all chips starting at a given page. We assume
|
||||
|
@ -903,14 +903,14 @@ static int check_create(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_desc
|
|||
if (td->pages[i] == -1) {
|
||||
rd = md;
|
||||
td->version[i] = md->version[i];
|
||||
writeops = 1;
|
||||
writeops = 0x01;
|
||||
goto writecheck;
|
||||
}
|
||||
|
||||
if (md->pages[i] == -1) {
|
||||
rd = td;
|
||||
md->version[i] = td->version[i];
|
||||
writeops = 2;
|
||||
writeops = 0x02;
|
||||
goto writecheck;
|
||||
}
|
||||
|
||||
|
@ -924,11 +924,11 @@ static int check_create(struct mtd_info *mtd, uint8_t *buf, struct nand_bbt_desc
|
|||
if (((int8_t)(td->version[i] - md->version[i])) > 0) {
|
||||
rd = td;
|
||||
md->version[i] = td->version[i];
|
||||
writeops = 2;
|
||||
writeops = 0x02;
|
||||
} else {
|
||||
rd = md;
|
||||
td->version[i] = md->version[i];
|
||||
writeops = 1;
|
||||
writeops = 0x01;
|
||||
}
|
||||
|
||||
goto writecheck;
|
||||
|
|
Loading…
Add table
Reference in a new issue