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

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

commit 5355adb9cf789340b89b948b6a35b6aafb4c5a47
Author: Nightt <[email protected]>
AuthorDate: Wed May 20 21:36:08 2026 +0800

    apps: Fix codespell warnings.
    
    Fix the reported typo warnings and ignore the V4L2 parm field name in apps 
codespell configuration, matching the main NuttX repository.
    
    Signed-off-by: Nightt <[email protected]>
---
 .codespellrc                                         |  2 +-
 system/nxcamera/nxcamera.c                           | 12 ++++++------
 testing/testsuites/kernel/syscall/cases/fcntl_test.c |  2 +-
 3 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/.codespellrc b/.codespellrc
index c2a1ecdfc..8bcdf2bc7 100644
--- a/.codespellrc
+++ b/.codespellrc
@@ -10,4 +10,4 @@ skip =
   LICENSE,
 
 # Ignore words list (FTP protocol commands and technical terms)
-ignore-words-list = ALLO, ARCHTYPE
+ignore-words-list = ALLO, ARCHTYPE, parm
diff --git a/system/nxcamera/nxcamera.c b/system/nxcamera/nxcamera.c
index 331ff6214..0f74b418a 100644
--- a/system/nxcamera/nxcamera.c
+++ b/system/nxcamera/nxcamera.c
@@ -676,7 +676,7 @@ int nxcamera_stream(FAR struct nxcamera_s *pcam,
   int                        i;
   struct v4l2_buffer         buf;
   struct v4l2_requestbuffers req;
-  struct v4l2_streamparm     parm;
+  struct v4l2_streamparm     param;
 
   DEBUGASSERT(pcam != NULL);
 
@@ -720,11 +720,11 @@ int nxcamera_stream(FAR struct nxcamera_s *pcam,
       return ret;
     }
 
-  memset(&parm, 0, sizeof(parm));
-  parm.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
-  parm.parm.capture.timeperframe.denominator = framerate;
-  parm.parm.capture.timeperframe.numerator = 1;
-  ret = ioctl(pcam->capture_fd, VIDIOC_S_PARM, (uintptr_t)&parm);
+  memset(&param, 0, sizeof(param));
+  param.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
+  param.parm.capture.timeperframe.denominator = framerate;
+  param.parm.capture.timeperframe.numerator = 1;
+  ret = ioctl(pcam->capture_fd, VIDIOC_S_PARM, (uintptr_t)&param);
   if (ret < 0)
     {
       ret = -errno;
diff --git a/testing/testsuites/kernel/syscall/cases/fcntl_test.c 
b/testing/testsuites/kernel/syscall/cases/fcntl_test.c
index 2dfdcc370..2737621ce 100644
--- a/testing/testsuites/kernel/syscall/cases/fcntl_test.c
+++ b/testing/testsuites/kernel/syscall/cases/fcntl_test.c
@@ -113,7 +113,7 @@ void test_nuttx_syscall_fcntl01(FAR void **state)
   flags = fcntl(fd[2], F_GETFL, 0);
   assert_false((flags & (O_NDELAY | O_APPEND | O_WRONLY)) == 0);
 
-  /* Check that flags are not cummulative */
+  /* Check that flags are not cumulative */
 
   assert_false(fcntl(fd[2], F_SETFL, 0) == -1);
 

Reply via email to