You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ag...@apache.org on 2020/11/08 17:58:32 UTC

[incubator-nuttx] 03/03: Fix some typos in comments

This is an automated email from the ASF dual-hosted git repository.

aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit ca7a7ccbeba7d5024e1eec61a353d676e0d9b63c
Author: Juha Niskanen <ju...@haltian.com>
AuthorDate: Sun Nov 8 17:57:30 2020 +0200

    Fix some typos in comments
    
    Signed-off-by: Juha Niskanen <ju...@haltian.com>
---
 arch/arm/src/stm32f7/stm32_qspi.c  | 4 ++--
 arch/arm/src/stm32h7/stm32_qspi.c  | 4 ++--
 arch/avr/src/avr32/up_exceptions.S | 6 +++---
 drivers/serial/serial_dma.c        | 2 +-
 drivers/usbdev/cdcacm.c            | 2 +-
 fs/fat/fs_fat32.c                  | 2 +-
 fs/hostfs/hostfs.c                 | 2 +-
 fs/nxffs/nxffs.h                   | 2 +-
 fs/nxffs/nxffs_unlink.c            | 2 +-
 fs/smartfs/smartfs_smart.c         | 4 ++--
 10 files changed, 15 insertions(+), 15 deletions(-)

diff --git a/arch/arm/src/stm32f7/stm32_qspi.c b/arch/arm/src/stm32f7/stm32_qspi.c
index 2f64258..7a4415b 100644
--- a/arch/arm/src/stm32f7/stm32_qspi.c
+++ b/arch/arm/src/stm32f7/stm32_qspi.c
@@ -220,8 +220,8 @@ struct stm32f7_qspidev_s
 /* The QSPI transaction specification
  *
  * This is mostly the values of the CCR and DLR, AR, ABR, broken out into a C
- * structure  since these fields need to be considered at various phases of
- * thee transaction processing activity.
+ * structure since these fields need to be considered at various phases of
+ * the transaction processing activity.
  */
 
 struct qspi_xctnspec_s
diff --git a/arch/arm/src/stm32h7/stm32_qspi.c b/arch/arm/src/stm32h7/stm32_qspi.c
index 2ca4cfa..a7ce970 100644
--- a/arch/arm/src/stm32h7/stm32_qspi.c
+++ b/arch/arm/src/stm32h7/stm32_qspi.c
@@ -244,8 +244,8 @@ struct stm32h7_qspidev_s
 /* The QSPI transaction specification
  *
  * This is mostly the values of the CCR and DLR, AR, ABR, broken out into a C
- * structure  since these fields need to be considered at various phases of
- * thee transaction processing activity.
+ * structure since these fields need to be considered at various phases of
+ * the transaction processing activity.
  */
 
 struct qspi_xctnspec_s
diff --git a/arch/avr/src/avr32/up_exceptions.S b/arch/avr/src/avr32/up_exceptions.S
index a297f2d..f405584 100644
--- a/arch/avr/src/avr32/up_exceptions.S
+++ b/arch/avr/src/avr32/up_exceptions.S
@@ -57,7 +57,7 @@
  * Macros
  ****************************************************************************/
 
-/* Exception entry logic.  On entry, thee context save area looks like:     */
+/* Exception entry logic.  On entry, the context save area looks like:      */
 /*     xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx SR PC                   */
 /*                                                  ^     ^+2*4             */
 /* Upon joining common logic, the context save are will look like:          */
@@ -69,7 +69,7 @@
 \label:
 	st.w	--sp, r10
 	mov		r10, \irqno
-	rjmp	avr32_xcptcommon	/* FIXME!!! Need IRQ in a register          */
+	rjmp	avr32_xcptcommon	/* FIXME!!! Need IRQ in a register */
 	.endm
 
 /****************************************************************************
@@ -129,7 +129,7 @@ vectortab:
  * Interrupts
  ****************************************************************************/
 
-/* The interrupt controller must provide an address that is relative to the */
+/* The interrupt controller must provide an address that is relative to     */
 /* the EVBA so it is natural to define these interrupt vectors just after   */
 /* the exception table. On entry to each interrupt handler, R8-R12, LR, PC  */
 /* and SR have already been pushed onto the system stack by the MCU.        */
diff --git a/drivers/serial/serial_dma.c b/drivers/serial/serial_dma.c
index f31dc4e..b3915c0 100644
--- a/drivers/serial/serial_dma.c
+++ b/drivers/serial/serial_dma.c
@@ -264,7 +264,7 @@ void uart_recvchars_dma(FAR uart_dev_t *dev)
   is_full = nexthead == rxbuf->tail;
 
 #ifdef CONFIG_SERIAL_IFLOWCONTROL_WATERMARKS
-  /* Pre-calcuate the watermark level that we will need to test against. */
+  /* Pre-calculate the watermark level that we will need to test against. */
 
   watermark = (CONFIG_SERIAL_IFLOWCONTROL_UPPER_WATERMARK * rxbuf->size) /
               100;
diff --git a/drivers/usbdev/cdcacm.c b/drivers/usbdev/cdcacm.c
index b980be3..175c625 100644
--- a/drivers/usbdev/cdcacm.c
+++ b/drivers/usbdev/cdcacm.c
@@ -515,7 +515,7 @@ static int cdcacm_recvpacket(FAR struct cdcacm_dev_s *priv,
     }
 
 #ifdef CONFIG_SERIAL_IFLOWCONTROL_WATERMARKS
-  /* Pre-calcuate the watermark level that we will need to test against.
+  /* Pre-calculate the watermark level that we will need to test against.
    * Note that the range of the the upper watermark is from 1 to 99 percent
    * and that the actual capacity of the RX buffer is (recv->size - 1).
    */
diff --git a/fs/fat/fs_fat32.c b/fs/fat/fs_fat32.c
index fe0c528..7b58af1 100644
--- a/fs/fat/fs_fat32.c
+++ b/fs/fat/fs_fat32.c
@@ -128,7 +128,7 @@ const struct mountpt_operations fat_operations =
   fat_unbind,        /* unbind */
   fat_statfs,        /* statfs */
 
-  fat_unlink,        /* unlinke */
+  fat_unlink,        /* unlink */
   fat_mkdir,         /* mkdir */
   fat_rmdir,         /* rmdir */
   fat_rename,        /* rename */
diff --git a/fs/hostfs/hostfs.c b/fs/hostfs/hostfs.c
index 7b6f259..3092a5c 100644
--- a/fs/hostfs/hostfs.c
+++ b/fs/hostfs/hostfs.c
@@ -157,7 +157,7 @@ const struct mountpt_operations hostfs_operations =
   hostfs_unbind,        /* unbind */
   hostfs_statfs,        /* statfs */
 
-  hostfs_unlink,        /* unlinke */
+  hostfs_unlink,        /* unlink */
   hostfs_mkdir,         /* mkdir */
   hostfs_rmdir,         /* rmdir */
   hostfs_rename,        /* rename */
diff --git a/fs/nxffs/nxffs.h b/fs/nxffs/nxffs.h
index 7748b27..610af72 100644
--- a/fs/nxffs/nxffs.h
+++ b/fs/nxffs/nxffs.h
@@ -1054,7 +1054,7 @@ int nxffs_rdblkhdr(FAR struct nxffs_volume_s *volume, off_t offset,
  *
  * Description:
  *   Remove an inode from FLASH.  This is the internal implementation of
- *   the file system unlinke operation.
+ *   the file system unlink operation.
  *
  * Input Parameters:
  *   volume - Describes the NXFFS volume.
diff --git a/fs/nxffs/nxffs_unlink.c b/fs/nxffs/nxffs_unlink.c
index f80ef16..e0e2b99 100644
--- a/fs/nxffs/nxffs_unlink.c
+++ b/fs/nxffs/nxffs_unlink.c
@@ -60,7 +60,7 @@
  *
  * Description:
  *   Remove an inode from FLASH.  This is the internal implementation of
- *   the file system unlinke operation.
+ *   the file system unlink operation.
  *
  * Input Parameters:
  *   volume - Describes the NXFFS volume.
diff --git a/fs/smartfs/smartfs_smart.c b/fs/smartfs/smartfs_smart.c
index dca3b8b..615a8f3 100644
--- a/fs/smartfs/smartfs_smart.c
+++ b/fs/smartfs/smartfs_smart.c
@@ -156,7 +156,7 @@ const struct mountpt_operations smartfs_operations =
   smartfs_unbind,        /* unbind */
   smartfs_statfs,        /* statfs */
 
-  smartfs_unlink,        /* unlinke */
+  smartfs_unlink,        /* unlink */
   smartfs_mkdir,         /* mkdir */
   smartfs_rmdir,         /* rmdir */
   smartfs_rename,        /* rename */
@@ -592,7 +592,7 @@ static ssize_t smartfs_read(FAR struct file *filep, char *buffer,
           sizeof(struct smartfs_chain_header_s));
       if (bytestoread + bytesread > buflen)
         {
-          /* Truncate bytesto read based on buffer len */
+          /* Truncate bytes to read based on buffer len */
 
           bytestoread = buflen - bytesread;
         }