Skip to content

Commit

Permalink
driver/mtd_spi_nor: Fix spellcheck errors
Browse files Browse the repository at this point in the history
  • Loading branch information
crasbe committed Apr 19, 2024
1 parent c293317 commit 1e2953d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions drivers/mtd_spi_nor/mtd_spi_nor.c
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ static inline void wait_for_write_enable_cleared(const mtd_spi_nor_t *dev)
uint8_t status;
mtd_spi_cmd_read(dev, dev->params->opcode->rdsr, &status, sizeof(status));

TRACE("mtd_spi_nor: wait device status = 0x%02x, waiting !WEL\n", (unsigned int)status);
TRACE("mtd_spi_nor: wait device status = 0x%02x, waiting !WEL-Flag\n", (unsigned int)status);

Check warning on line 365 in drivers/mtd_spi_nor/mtd_spi_nor.c

View workflow job for this annotation

GitHub Actions / static-tests

line is longer than 100 characters
if ((status & SPI_NOR_STATUS_WEL) == 0) {
break;
}
Expand All @@ -376,7 +376,7 @@ static inline void wait_for_write_enable_set(const mtd_spi_nor_t *dev)
uint8_t status;
mtd_spi_cmd_read(dev, dev->params->opcode->rdsr, &status, sizeof(status));

TRACE("mtd_spi_nor: wait device status = 0x%02x, waiting WEL\n", (unsigned int)status);
TRACE("mtd_spi_nor: wait device status = 0x%02x, waiting WEL-Flag\n", (unsigned int)status);
if (status & SPI_NOR_STATUS_WEL) {
break;
}
Expand Down Expand Up @@ -656,7 +656,7 @@ static int mtd_spi_nor_write_page(mtd_dev_t *mtd, const void *src, uint32_t page
/* write enable */
mtd_spi_cmd(dev, dev->params->opcode->wren);

/* Wait for WEL to be set */
/* Wait for WEL-Flag to be set */
wait_for_write_enable_set(dev);

/* Page program */
Expand All @@ -665,7 +665,7 @@ static int mtd_spi_nor_write_page(mtd_dev_t *mtd, const void *src, uint32_t page
/* waiting for the command to complete before returning */
wait_for_write_complete(dev, 0);

/* Wait for WEL to be cleared */
/* Wait for WEL-Flag to be cleared */
wait_for_write_enable_cleared(dev);

if (dev->params->flag & SPI_NOR_F_MX_SECUR) {
Expand Down Expand Up @@ -723,7 +723,7 @@ static int mtd_spi_nor_erase(mtd_dev_t *mtd, uint32_t addr, uint32_t size)
/* write enable */
mtd_spi_cmd(dev, dev->params->opcode->wren);

/* Wait for WEL to be set */
/* Wait for WEL-Flag to be set */
wait_for_write_enable_set(dev);

if (size == total_size) {
Expand Down Expand Up @@ -766,7 +766,7 @@ static int mtd_spi_nor_erase(mtd_dev_t *mtd, uint32_t addr, uint32_t size)
/* waiting for the command to complete before continuing */
wait_for_write_complete(dev, us);

/* Wait for WEL to be cleared */
/* Wait for WEL-Flag to be cleared */
wait_for_write_enable_cleared(dev);

if (dev->params->flag & SPI_NOR_F_MX_SECUR) {
Expand Down

0 comments on commit 1e2953d

Please sign in to comment.