Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 596d7452 authored by Brian Norris's avatar Brian Norris Committed by Artem Bityutskiy
Browse files

mtd: nand: fix style



Remove some extra spaces
Consistently use '0x' prefix for bitfield-like constants
Spelling: "aplies" -> "applies"

Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@intel.com>
parent 1196ac5a
Loading
Loading
Loading
Loading
+14 −14
Original line number Diff line number Diff line
@@ -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;