]> git.gag.com Git - fw/openocd/commitdiff
flash: fix some minor typo
authorAntonio Borneo <borneo.antonio@gmail.com>
Thu, 28 Jan 2021 11:51:44 +0000 (12:51 +0100)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 22 May 2021 09:06:32 +0000 (10:06 +0100)
Minor typos found by the new checkpatch boosted by the dictionary
provided by 'codespell'.

Change-Id: Ia5f134c91beb483fd865df9e4877e0ec3e789478
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/6215
Tested-by: jenkins
src/flash/nand/core.h
src/flash/nor/kinetis.c
src/flash/nor/mrvlqspi.c
src/flash/nor/msp432.h
src/flash/nor/nrf5.c
src/flash/nor/stmqspi.c

index 5bf9fb3d19ac1228937c3fada60ee532a6e56e9b..12fc2b76819ef8bae2fb137fa122376d3b57b664 100644 (file)
@@ -100,7 +100,7 @@ struct nand_info {
        const char *name;
 };
 
-/* Option constants for bizarre disfunctionality and real features
+/* Option constants for bizarre dysfunctionality and real features
  */
 enum {
        /* Chip can not auto increment pages */
index e6b452e0573ec7bc026dcffae1cec411f2fcf3bb..1fee6eb2e32c9c160dde471436c6b88be7792537 100644 (file)
@@ -2803,7 +2803,7 @@ static int kinetis_blank_check(struct flash_bank *bank)
        struct kinetis_chip *k_chip = k_bank->k_chip;
        int result;
 
-       /* suprisingly blank check does not work in VLPR and HSRUN modes */
+       /* surprisingly blank check does not work in VLPR and HSRUN modes */
        result = kinetis_check_run_mode(k_chip);
        if (result != ERROR_OK)
                return result;
index 3f5ce2c66091e02f71f88faa5c0daca85e6c3205..b98c49dbc09d5c0320a451d7652069e595819e59 100644 (file)
@@ -37,7 +37,7 @@
 #define QSPI_W_EN (0x1)
 #define QSPI_SS_DISABLE (0x0)
 #define QSPI_SS_ENABLE (0x1)
-#define WRITE_DISBALE (0x0)
+#define WRITE_DISABLE (0x0)
 #define WRITE_ENABLE (0x1)
 
 #define QSPI_TIMEOUT (1000)
index 663393b79d4dfe5266923794d59c61bf7638637d..af1d40c3c3c4444b1c0465d29e92a637f483bcd6 100644 (file)
@@ -43,7 +43,7 @@
 #define P4_SECTOR_LENGTH   0x1000
 #define P4_ALGO_ENTRY_ADDR 0x01000110
 
-/* MSP432E4 flash paramters */
+/* MSP432E4 flash parameters */
 #define E4_FLASH_BASE      FLASH_BASE
 #define E4_FLASH_SIZE      0x100000
 #define E4_SECTOR_LENGTH   0x4000
index 12bbac64f4b55941cbb5e1fc780b29c6f258ba3d..5e17a8c7b9aabdc95329a06c3b3b1832a8f942f0 100644 (file)
@@ -1038,7 +1038,7 @@ static int nrf5_write(struct flash_bank *bank, const uint8_t *buffer,
         * RM reads: Code running from code region 1 will not be able to write
         * to code region 0.
         * Unfortunately the flash loader running from RAM can write to both
-        * code regions whithout any hint the protection is violated.
+        * code regions without any hint the protection is violated.
         *
         * Update protection state and check if any flash sector to be written
         * is protected. */
index 11aa43898a8abd61dcc3e5b5fbcbd1dc76b94359..a3555a4a6e2d9f782daeaa01f8436503d263ce73 100644 (file)
@@ -175,7 +175,7 @@ struct stmqspi_flash_bank {
        bool octo;
        struct flash_device dev;
        uint32_t io_base;
-       uint32_t saved_cr;      /* in particalar FSEL, DFM bit mask in QUADSPI_CR *AND* OCTOSPI_CR */
+       uint32_t saved_cr;      /* in particular FSEL, DFM bit mask in QUADSPI_CR *AND* OCTOSPI_CR */
        uint32_t saved_ccr; /* different meaning for QUADSPI and OCTOSPI */
        uint32_t saved_tcr;     /* only for OCTOSPI */
        uint32_t saved_ir;      /* only for OCTOSPI */