Skip to content

Commit 8ab1b51

Browse files
Shen Lichuanmiquelraynal
authored andcommitted
mtd: rawnand: Correct multiple typos in comments
Fixed some confusing spelling errors, the details are as follows: -in the code comments: remaing -> remaining alingment -> alignment capabilitiies -> capabilities operatoin -> operation decriptors -> descriptors stareted -> started Unfortunelly -> Unfortunately compatabable -> compatible depenent -> dependent Signed-off-by: Shen Lichuan <[email protected]> Signed-off-by: Miquel Raynal <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
1 parent 9852d85 commit 8ab1b51

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

drivers/mtd/nand/raw/brcmnand/brcmnand.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1561,7 +1561,7 @@ static int write_oob_to_regs(struct brcmnand_controller *ctrl, int i,
15611561
(oob[j + 2] << 8) |
15621562
(oob[j + 3] << 0));
15631563

1564-
/* handle the remaing bytes */
1564+
/* handle the remaining bytes */
15651565
while (j < tbytes)
15661566
plast[k++] = oob[j++];
15671567

drivers/mtd/nand/raw/cadence-nand-controller.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1891,7 +1891,7 @@ static int cadence_nand_read_buf(struct cdns_nand_ctrl *cdns_ctrl,
18911891

18921892
int len_in_words = (data_dma_width == 4) ? len >> 2 : len >> 3;
18931893

1894-
/* read alingment data */
1894+
/* read alignment data */
18951895
if (data_dma_width == 4)
18961896
ioread32_rep(cdns_ctrl->io.virt, buf, len_in_words);
18971897
#ifdef CONFIG_64BIT

drivers/mtd/nand/raw/cs553x_nand.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
#define NR_CS553X_CONTROLLERS 4
2828

29-
#define MSR_DIVIL_GLD_CAP 0x51400000 /* DIVIL capabilitiies */
29+
#define MSR_DIVIL_GLD_CAP 0x51400000 /* DIVIL capabilities */
3030
#define CAP_CS5535 0x2df000ULL
3131
#define CAP_CS5536 0x5df500ULL
3232

drivers/mtd/nand/raw/nand_macronix.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ static void macronix_nand_onfi_init(struct nand_chip *chip)
113113
rand_otp = of_property_read_bool(dn, "mxic,enable-randomizer-otp");
114114

115115
mxic = (struct nand_onfi_vendor_macronix *)p->onfi->vendor;
116-
/* Subpage write is prohibited in randomizer operatoin */
116+
/* Subpage write is prohibited in randomizer operation */
117117
if (rand_otp && chip->options & NAND_NO_SUBPAGE_WRITE &&
118118
mxic->reliability_func & MACRONIX_RANDOMIZER_BIT) {
119119
if (p->supports_set_get_features) {

drivers/mtd/nand/raw/pl35x-nand-controller.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ static const struct mtd_ooblayout_ops pl35x_ecc_ooblayout16_ops = {
187187
.free = pl35x_ecc_ooblayout16_free,
188188
};
189189

190-
/* Generic flash bbt decriptors */
190+
/* Generic flash bbt descriptors */
191191
static u8 bbt_pattern[] = { 'B', 'b', 't', '0' };
192192
static u8 mirror_pattern[] = { '1', 't', 'b', 'B' };
193193

drivers/mtd/nand/raw/r852.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ static void r852_cmdctl(struct nand_chip *chip, int dat, unsigned int ctrl)
335335
else
336336
dev->ctlreg &= ~R852_CTL_WRITE;
337337

338-
/* when write is stareted, enable write access */
338+
/* when write is started, enable write access */
339339
if (dat == NAND_CMD_ERASE1)
340340
dev->ctlreg |= R852_CTL_WRITE;
341341

@@ -372,7 +372,7 @@ static int r852_wait(struct nand_chip *chip)
372372

373373
nand_status_op(chip, &status);
374374

375-
/* Unfortunelly, no way to send detailed error status... */
375+
/* Unfortunately, no way to send detailed error status... */
376376
if (dev->dma_error) {
377377
status |= NAND_STATUS_FAIL;
378378
dev->dma_error = 0;

drivers/mtd/nand/raw/sm_common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ static const struct mtd_ooblayout_ops oob_sm_ops = {
5252
.free = oob_sm_ooblayout_free,
5353
};
5454

55-
/* NOTE: This layout is not compatabable with SmartMedia, */
56-
/* because the 256 byte devices have page depenent oob layout */
55+
/* NOTE: This layout is not compatible with SmartMedia, */
56+
/* because the 256 byte devices have page dependent oob layout */
5757
/* However it does preserve the bad block markers */
5858
/* If you use smftl, it will bypass this and work correctly */
5959
/* If you not, then you break SmartMedia compliance anyway */

0 commit comments

Comments
 (0)