Skip to content

Commit c69942b

Browse files
neuschaeferr-vignesh
authored andcommitted
mtd: spi-nor: Fix multiple typos
There are a few typos in comments in the SPI NOR framework; fix them. Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net> Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com> Reviewed-by: Tudor Ambarus <tudor.ambarus@microchip.com> Link: https://lore.kernel.org/r/20201130152416.1283972-1-j.neuschaefer@gmx.net
1 parent ad624df commit c69942b

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎drivers/mtd/spi-nor/core.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1599,7 +1599,7 @@ static int spi_nor_erase_multi_sectors(struct spi_nor *nor, u64 addr, u32 len)
15991599

16001600
/*
16011601
* Erase an address range on the nor chip. The address range may extend
1602-
* one or more erase sectors. Return an error is there is a problem erasing.
1602+
* one or more erase sectors. Return an error if there is a problem erasing.
16031603
*/
16041604
static int spi_nor_erase(struct mtd_info *mtd, struct erase_info *instr)
16051605
{
@@ -2693,7 +2693,7 @@ spi_nor_select_uniform_erase(struct spi_nor_erase_map *map,
26932693
}
26942694

26952695
/*
2696-
* Otherwise, the current erase size is still a valid canditate.
2696+
* Otherwise, the current erase size is still a valid candidate.
26972697
* Select the biggest valid candidate.
26982698
*/
26992699
if (!erase && tested_erase->size)

‎drivers/mtd/spi-nor/sfdp.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ struct sfdp_bfpt_read {
6565

6666
struct sfdp_bfpt_erase {
6767
/*
68-
* The half-word at offset <shift> in DWORD <dwoard> encodes the
68+
* The half-word at offset <shift> in DWORD <dword> encodes the
6969
* op code and erase sector size to be used by Sector Erase commands.
7070
*/
7171
u32 dword;

‎include/linux/mtd/spi-nor.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ static inline struct device_node *spi_nor_get_flash_node(struct spi_nor *nor)
433433
* @name: the chip type name
434434
* @hwcaps: the hardware capabilities supported by the controller driver
435435
*
436-
* The drivers can use this fuction to scan the SPI NOR.
436+
* The drivers can use this function to scan the SPI NOR.
437437
* In the scanning, it will try to get all the necessary information to
438438
* fill the mtd_info{} and the spi_nor{}.
439439
*

0 commit comments

Comments
 (0)