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
This commit is contained in:
Jonathan Neuschäfer 2020-11-30 16:24:15 +01:00 committed by Vignesh Raghavendra
parent ad624dfd7b
commit c69942bda5
3 changed files with 4 additions and 4 deletions

View File

@ -1599,7 +1599,7 @@ destroy_erase_cmd_list:
/* /*
* Erase an address range on the nor chip. The address range may extend * Erase an address range on the nor chip. The address range may extend
* one or more erase sectors. Return an error is there is a problem erasing. * one or more erase sectors. Return an error if there is a problem erasing.
*/ */
static int spi_nor_erase(struct mtd_info *mtd, struct erase_info *instr) static int spi_nor_erase(struct mtd_info *mtd, struct erase_info *instr)
{ {
@ -2693,7 +2693,7 @@ spi_nor_select_uniform_erase(struct spi_nor_erase_map *map,
} }
/* /*
* Otherwise, the current erase size is still a valid canditate. * Otherwise, the current erase size is still a valid candidate.
* Select the biggest valid candidate. * Select the biggest valid candidate.
*/ */
if (!erase && tested_erase->size) if (!erase && tested_erase->size)

View File

@ -65,7 +65,7 @@ struct sfdp_bfpt_read {
struct sfdp_bfpt_erase { struct sfdp_bfpt_erase {
/* /*
* The half-word at offset <shift> in DWORD <dwoard> encodes the * The half-word at offset <shift> in DWORD <dword> encodes the
* op code and erase sector size to be used by Sector Erase commands. * op code and erase sector size to be used by Sector Erase commands.
*/ */
u32 dword; u32 dword;

View File

@ -433,7 +433,7 @@ static inline struct device_node *spi_nor_get_flash_node(struct spi_nor *nor)
* @name: the chip type name * @name: the chip type name
* @hwcaps: the hardware capabilities supported by the controller driver * @hwcaps: the hardware capabilities supported by the controller driver
* *
* The drivers can use this fuction to scan the SPI NOR. * The drivers can use this function to scan the SPI NOR.
* In the scanning, it will try to get all the necessary information to * In the scanning, it will try to get all the necessary information to
* fill the mtd_info{} and the spi_nor{}. * fill the mtd_info{} and the spi_nor{}.
* *