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:29 UTC
[incubator-nuttx] branch master updated (3503098 -> ca7a7cc)
This is an automated email from the ASF dual-hosted git repository.
aguettouche pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git.
from 3503098 tiva/cc13x2_cc26x2: Fix nxstyle errors
new 62d38c3 drivers/lcd/memlcd.c: fix typos and nxstyle
new 70cbb7e include/nuttx/net/netconfig.h: fix typos and nxstyle
new ca7a7cc Fix some typos in comments
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
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/lcd/memlcd.c | 69 ++++++++++++++++++++------------------
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 +--
include/nuttx/lcd/memlcd.h | 22 ++++--------
include/nuttx/net/netconfig.h | 25 ++++++--------
13 files changed, 70 insertions(+), 76 deletions(-)
[incubator-nuttx] 01/03: drivers/lcd/memlcd.c: fix typos and nxstyle
Posted by ag...@apache.org.
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 62d38c32e85635a8aeba7a5b81ef045f256dc675
Author: Juha Niskanen <ju...@haltian.com>
AuthorDate: Sun Nov 8 17:56:19 2020 +0200
drivers/lcd/memlcd.c: fix typos and nxstyle
Signed-off-by: Juha Niskanen <ju...@haltian.com>
---
drivers/lcd/memlcd.c | 69 +++++++++++++++++++++++++---------------------
include/nuttx/lcd/memlcd.h | 22 +++++----------
2 files changed, 44 insertions(+), 47 deletions(-)
diff --git a/drivers/lcd/memlcd.c b/drivers/lcd/memlcd.c
index ad93ab4..76dc2f3 100644
--- a/drivers/lcd/memlcd.c
+++ b/drivers/lcd/memlcd.c
@@ -71,7 +71,7 @@
# warning This platform does not support SPI LSB-bit order
#endif
-/* Cisplay resolution */
+/* Display resolution */
#if defined CONFIG_MEMLCD_LS013B7DH01
# define MEMLCD_XRES 144
@@ -102,8 +102,8 @@
/* display memory allocation */
#define MEMLCD_FBSIZE (MEMLCD_XSTRIDE*MEMLCD_YRES)
-/* contrast setting, related to VCOM toggle frequency
- * higher frequency gives better contrast, instead, saves power
+/* Contrast setting, related to VCOM toggle frequency.
+ * Higher frequency gives better contrast, lower instead saves power.
*/
#define MEMLCD_CONTRAST 24
@@ -157,14 +157,15 @@ static void memlcd_deselect(FAR struct spi_dev_s *spi);
static int memlcd_putrun(fb_coord_t row, fb_coord_t col,
FAR const uint8_t * buffer, size_t npixels);
-static int memlcd_getrun(fb_coord_t row, fb_coord_t col, FAR uint8_t * buffer,
- size_t npixels);
+static int memlcd_getrun(fb_coord_t row, fb_coord_t col,
+ FAR uint8_t * buffer, size_t npixels);
/* lcd configuration */
static int memlcd_getvideoinfo(FAR struct lcd_dev_s *dev,
FAR struct fb_videoinfo_s *vinfo);
-static int memlcd_getplaneinfo(FAR struct lcd_dev_s *dev, unsigned int planeno,
+static int memlcd_getplaneinfo(FAR struct lcd_dev_s *dev,
+ unsigned int planeno,
FAR struct lcd_planeinfo_s *pinfo);
/* lcd specific controls */
@@ -200,7 +201,9 @@ static const struct lcd_planeinfo_s g_planeinfo =
.bpp = MEMLCD_BPP, /* Bits-per-pixel */
};
-/* This is the oled driver instance (only a single device is supported for now) */
+/* This is the oled driver instance (only a single device is supported
+ * for now).
+ */
static struct memlcd_dev_s g_memlcddev =
{
@@ -230,16 +233,16 @@ static struct memlcd_dev_s g_memlcddev =
* @nr: the bit to set
* @addr: the address to start counting from
*
- * Unlike set_bit(), this function is non-atomic and may be reordered.
- * If it's called on the same region of memory simultaneously, the effect
- * may be that only one operation succeeds.
+ * This function is not atomic and may be reordered. If it's called on the
+ * same region of memory simultaneously, the effect may be that only one
+ * operation succeeds.
*
****************************************************************************/
#define BIT(nr) (1 << (nr))
-#define BITS_PER_BYTE 8
-#define BIT_MASK(nr) (1 << ((nr) % BITS_PER_BYTE))
-#define BIT_BYTE(nr) ((nr) / BITS_PER_BYTE)
+#define BITS_PER_BYTE 8
+#define BIT_MASK(nr) (1 << ((nr) % BITS_PER_BYTE))
+#define BIT_BYTE(nr) ((nr) / BITS_PER_BYTE)
static inline void __set_bit(int nr, uint8_t * addr)
{
@@ -264,7 +267,7 @@ static inline int __test_bit(int nr, const volatile uint8_t * addr)
* Name: memlcd_select
*
* Description:
- * Select the SPI, locking and re-configuring if necessary
+ * Select the SPI, locking and re-configuring if necessary
*
* Input Parameters:
* spi - Reference to the SPI driver structure
@@ -272,8 +275,6 @@ static inline int __test_bit(int nr, const volatile uint8_t * addr)
* Returned Value:
* None
*
- * Assumptions:
- *
****************************************************************************/
static void memlcd_select(FAR struct spi_dev_s *spi)
@@ -319,8 +320,6 @@ static void memlcd_select(FAR struct spi_dev_s *spi)
* Returned Value:
* None
*
- * Assumptions:
- *
****************************************************************************/
static void memlcd_deselect(FAR struct spi_dev_s *spi)
@@ -340,8 +339,6 @@ static void memlcd_deselect(FAR struct spi_dev_s *spi)
* Input Parameters:
* mlcd - Reference to private driver structure
*
- * Assumptions:
- *
****************************************************************************/
static inline void memlcd_clear(FAR struct memlcd_dev_s *mlcd)
@@ -350,9 +347,13 @@ static inline void memlcd_clear(FAR struct memlcd_dev_s *mlcd)
lcdinfo("Clear display\n");
memlcd_select(mlcd->spi);
+
/* XXX Ensure 2us here */
+
SPI_SNDBLOCK(mlcd->spi, &cmd, 2);
+
/* XXX Ensure 6us here */
+
memlcd_deselect(mlcd->spi);
}
@@ -363,10 +364,10 @@ static inline void memlcd_clear(FAR struct memlcd_dev_s *mlcd)
* This method enables/disables the polarity (VCOM) toggling behavior for
* the Memory LCD. Which is always used within setpower() call.
* Basically, the frequency shall be 1Hz~60Hz.
- * If use hardware mode to toggle VCOM, we need to send specific command at a
- * constant frequency to trigger the LCD internal hardware logic.
- * While use software mode, we set up a timer to toggle EXTCOMIN connected IO,
- * basically, it is a hardware timer to ensure a constant frequency.
+ * If use hardware mode to toggle VCOM, we need to send specific command at
+ * a constant frequency to trigger the LCD internal hardware logic.
+ * While use software mode, we set up a timer to toggle EXTCOMIN connected
+ * IO, basically, it is a hardware timer to ensure a constant frequency.
*
* Input Parameters:
* mlcd - Reference to private driver structure
@@ -498,8 +499,8 @@ static int memlcd_putrun(fb_coord_t row, fb_coord_t col,
*
****************************************************************************/
-static int memlcd_getrun(fb_coord_t row, fb_coord_t col, FAR uint8_t * buffer,
- size_t npixels)
+static int memlcd_getrun(fb_coord_t row, fb_coord_t col,
+ FAR uint8_t * buffer, size_t npixels)
{
FAR struct memlcd_dev_s *mlcd = (FAR struct memlcd_dev_s *)&g_memlcddev;
uint8_t *p;
@@ -582,7 +583,8 @@ static int memlcd_getvideoinfo(FAR struct lcd_dev_s *dev,
*
****************************************************************************/
-static int memlcd_getplaneinfo(FAR struct lcd_dev_s *dev, unsigned int planeno,
+static int memlcd_getplaneinfo(FAR struct lcd_dev_s *dev,
+ unsigned int planeno,
FAR struct lcd_planeinfo_s *pinfo)
{
DEBUGASSERT(pinfo && planeno == 0);
@@ -595,8 +597,9 @@ static int memlcd_getplaneinfo(FAR struct lcd_dev_s *dev, unsigned int planeno,
* Name: memlcd_getpower
*
* Description:
- * Get the LCD panel power status (0: full off - CONFIG_LCD_MAXPOWER: full on.
- * On backlit LCDs, this setting may correspond to the backlight setting.
+ * Get the LCD panel power status (0: full off - CONFIG_LCD_MAXPOWER: full
+ * on. On backlit LCDs, this setting may correspond to the backlight
+ * setting.
*
****************************************************************************/
@@ -613,8 +616,9 @@ static int memlcd_getpower(FAR struct lcd_dev_s *dev)
* Name: memlcd_setpower
*
* Description:
- * Enable/disable LCD panel power (0: full off - CONFIG_LCD_MAXPOWER: full on).
- * On backlit LCDs, this setting may correspond to the backlight setting.
+ * Enable/disable LCD panel power (0: full off - CONFIG_LCD_MAXPOWER: full
+ * on). On backlit LCDs, this setting may correspond to the backlight
+ * setting.
*
****************************************************************************/
@@ -700,7 +704,8 @@ static int memlcd_setcontrast(struct lcd_dev_s *dev, unsigned int contrast)
* Input Parameters:
*
* spi - A reference to the SPI driver instance.
- * devno - A value in the range of 0 through CONFIG_memlcd_NINTERFACES-1.
+ * priv - Board specific structure
+ * devno - A value in the range of 0 through CONFIG_MEMLCD_NINTERFACES-1.
* This allows support for multiple OLED devices.
*
* Returned Value:
diff --git a/include/nuttx/lcd/memlcd.h b/include/nuttx/lcd/memlcd.h
index 9d7268c..95dfba0 100644
--- a/include/nuttx/lcd/memlcd.h
+++ b/include/nuttx/lcd/memlcd.h
@@ -52,16 +52,12 @@ extern "C"
#endif
/****************************************************************************
- * Pre-processor Definitions
- ****************************************************************************/
-
-/****************************************************************************
* Public Types
****************************************************************************/
-/* A reference to a structure of this type must be passed to the initialization
- * method. It provides some board-specific hooks used by driver to manage the
- * timer and gpio (IRQ and DISP).
+/* A reference to a structure of this type must be passed to the
+ * initialization method. It provides some board-specific hooks used by
+ * driver to manage the timer and gpio (IRQ and DISP).
*
* Memory for this structure is provided by the caller. It is not copied
* by the driver and is presumed to persist while the driver is active.
@@ -73,11 +69,11 @@ struct memlcd_priv_s
* callbacks to isolate the Memory LCD driver from differences in GPIO
* interrupt handling by varying boards and MCUs.
*
- * irqattach - Attach the driver interrupt handler to the GPIO interrupt
+ * attachirq - Attach the driver interrupt handler to the GPIO interrupt
* If isr is NULL, detach and disable it.
* dispcontrol - Enable or disable the DISP pin and EXTCOMIN interrupt.
- * setpolarity - Board specified method to set EXTCOMIN.
- * Needed only when CONFIG_MEMLCD_EXTCOMIN_MODE_HW is not set.
+ * setpolarity - Board specified method to set EXTCOMIN. Needed only when
+ * CONFIG_MEMLCD_EXTCOMIN_MODE_HW is not set.
* setvcomfreq - Set timer frequency for EXTCOMIN.
*/
@@ -90,10 +86,6 @@ struct memlcd_priv_s
};
/****************************************************************************
- * Public Data
- ****************************************************************************/
-
-/****************************************************************************
* Public Function Prototypes
****************************************************************************/
@@ -105,9 +97,9 @@ struct memlcd_priv_s
* Input Parameters:
*
* spi - A reference to the SPI driver instance.
+ * priv - Board specific structure
* devno - A value in the range of 0 through CONFIG_MEMLCD_NINTERFACES-1.
* This allows support for multiple devices.
- * memlcd_priv_s - Board specific structure
*
* Returned Value:
*
[incubator-nuttx] 02/03: include/nuttx/net/netconfig.h: fix typos
and nxstyle
Posted by ag...@apache.org.
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 70cbb7e5378657fd5327d7a68958ea2602070c50
Author: Juha Niskanen <ju...@haltian.com>
AuthorDate: Sun Nov 8 17:56:41 2020 +0200
include/nuttx/net/netconfig.h: fix typos and nxstyle
Signed-off-by: Juha Niskanen <ju...@haltian.com>
---
include/nuttx/net/netconfig.h | 25 +++++++++++--------------
1 file changed, 11 insertions(+), 14 deletions(-)
diff --git a/include/nuttx/net/netconfig.h b/include/nuttx/net/netconfig.h
index ae5a9c2..dea2684 100644
--- a/include/nuttx/net/netconfig.h
+++ b/include/nuttx/net/netconfig.h
@@ -253,8 +253,8 @@
# endif
#endif
-/* The UDP maximum packet size. This is should not be to set to more
- * than NETDEV_PKTSIZE(d) - NET_LL_HDRLEN(dev) - __UDP_HDRLEN - IPv*_HDRLEN.
+/* The UDP maximum packet size. This should not be set to more than
+ * NETDEV_PKTSIZE(d) - NET_LL_HDRLEN(dev) - __UDP_HDRLEN - IPv*_HDRLEN.
*/
#define UDP_MSS(d,h) (NETDEV_PKTSIZE(d) - NET_LL_HDRLEN(d) - __UDP_HDRLEN - (h))
@@ -351,7 +351,7 @@
# define MAX_UDP_MSS __MAX_UDP_MSS(__IPv4_HDRLEN)
#endif
-/* If IPv6 is support, it will have the smaller MSS */
+/* If IPv6 is supported, it will have the smaller MSS. */
#ifdef CONFIG_NET_IPv6
# undef MIN_UDP_MSS
@@ -399,10 +399,7 @@
/* The initial retransmission timeout counted in timer pulses.
* REVISIT: TCP RTO really should be calculated dynamically for each TCP
- * connection:
- *
- * https://unix.stackexchange.com/questions/210367/changing-the-tcp-rto-value-in-linux
- * http://sgros.blogspot.com/2012/02/calculating-tcp-rto.html
+ * connection.
*/
#ifdef CONFIG_NET_TCP_RTO
@@ -428,12 +425,12 @@
#define TCP_MAXSYNRTX 5
-/* The TCP maximum segment size. This is should not be set to more
- * than NETDEV_PKTSIZE(dev) - NET_LL_HDRLEN(dev) - IPvN_HDRLEN - __TCP_HDRLEN.
+/* The TCP maximum segment size. This should not be set to more than
+ * NETDEV_PKTSIZE(dev) - NET_LL_HDRLEN(dev) - IPvN_HDRLEN - __TCP_HDRLEN.
*
* In the case where there are multiple network devices with different
- * link layer protocols, each network device may support a different UDP
- * MSS value. Here we arbitrarily select the minimum MSS for that case.
+ * link layer protocols, each network device may support a different MSS
+ * value. Here we arbitrarily select the minimum MSS for that case.
*
* REVISIT: __TCP_HDRLEN is not really a constant!
*/
@@ -521,7 +518,7 @@
#endif
/* If IPv4 is supported, it will have the larger MSS.
- * NOTE: MSS calcuation excludes the __TCP_HDRLEN.
+ * NOTE: MSS calculation excludes the __TCP_HDRLEN.
*/
#ifdef CONFIG_NET_IPv6
@@ -542,7 +539,7 @@
# define MAX_TCP_MSS __MAX_TCP_MSS(__IPv4_HDRLEN)
#endif
-/* If IPv6 is supported, it will have the smaller MSS */
+/* If IPv6 is supported, it will have the smaller MSS. */
#ifdef CONFIG_NET_IPv6
# undef MIN_TCP_MSS
@@ -609,7 +606,7 @@
/* Statistics datatype
*
- * This typedef defines the dataype used for keeping statistics in
+ * This typedef defines the datatype used for keeping statistics in
* the network.
*/
[incubator-nuttx] 03/03: Fix some typos in comments
Posted by ag...@apache.org.
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;
}