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
@ -250,7 +250,7 @@ static int read_bbt(struct mtd_info *mtd, uint8_t *buf, int page, int num,
|
|||||||
* @mtd: MTD device structure
|
* @mtd: MTD device structure
|
||||||
* @buf: temporary buffer
|
* @buf: temporary buffer
|
||||||
* @td: descriptor for the bad block table
|
* @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
|
* NAND_BBT_PERCHIP option is set
|
||||||
*
|
*
|
||||||
* Read the bad block table for all chips starting at a given page. We assume
|
* 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) {
|
if (td->pages[i] == -1) {
|
||||||
rd = md;
|
rd = md;
|
||||||
td->version[i] = md->version[i];
|
td->version[i] = md->version[i];
|
||||||
writeops = 1;
|
writeops = 0x01;
|
||||||
goto writecheck;
|
goto writecheck;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (md->pages[i] == -1) {
|
if (md->pages[i] == -1) {
|
||||||
rd = td;
|
rd = td;
|
||||||
md->version[i] = td->version[i];
|
md->version[i] = td->version[i];
|
||||||
writeops = 2;
|
writeops = 0x02;
|
||||||
goto writecheck;
|
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) {
|
if (((int8_t)(td->version[i] - md->version[i])) > 0) {
|
||||||
rd = td;
|
rd = td;
|
||||||
md->version[i] = td->version[i];
|
md->version[i] = td->version[i];
|
||||||
writeops = 2;
|
writeops = 0x02;
|
||||||
} else {
|
} else {
|
||||||
rd = md;
|
rd = md;
|
||||||
td->version[i] = md->version[i];
|
td->version[i] = md->version[i];
|
||||||
writeops = 1;
|
writeops = 0x01;
|
||||||
}
|
}
|
||||||
|
|
||||||
goto writecheck;
|
goto writecheck;
|
||||||
|
Loading…
Reference in New Issue
Block a user