mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
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 <87569709+nightt5879@users.noreply.github.com>
This commit is contained in:
parent
fcd10aa725
commit
5355adb9cf
3 changed files with 8 additions and 8 deletions
|
|
@ -10,4 +10,4 @@ skip =
|
||||||
LICENSE,
|
LICENSE,
|
||||||
|
|
||||||
# Ignore words list (FTP protocol commands and technical terms)
|
# Ignore words list (FTP protocol commands and technical terms)
|
||||||
ignore-words-list = ALLO, ARCHTYPE
|
ignore-words-list = ALLO, ARCHTYPE, parm
|
||||||
|
|
|
||||||
|
|
@ -676,7 +676,7 @@ int nxcamera_stream(FAR struct nxcamera_s *pcam,
|
||||||
int i;
|
int i;
|
||||||
struct v4l2_buffer buf;
|
struct v4l2_buffer buf;
|
||||||
struct v4l2_requestbuffers req;
|
struct v4l2_requestbuffers req;
|
||||||
struct v4l2_streamparm parm;
|
struct v4l2_streamparm param;
|
||||||
|
|
||||||
DEBUGASSERT(pcam != NULL);
|
DEBUGASSERT(pcam != NULL);
|
||||||
|
|
||||||
|
|
@ -720,11 +720,11 @@ int nxcamera_stream(FAR struct nxcamera_s *pcam,
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
memset(&parm, 0, sizeof(parm));
|
memset(¶m, 0, sizeof(param));
|
||||||
parm.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
|
param.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
|
||||||
parm.parm.capture.timeperframe.denominator = framerate;
|
param.parm.capture.timeperframe.denominator = framerate;
|
||||||
parm.parm.capture.timeperframe.numerator = 1;
|
param.parm.capture.timeperframe.numerator = 1;
|
||||||
ret = ioctl(pcam->capture_fd, VIDIOC_S_PARM, (uintptr_t)&parm);
|
ret = ioctl(pcam->capture_fd, VIDIOC_S_PARM, (uintptr_t)¶m);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
ret = -errno;
|
ret = -errno;
|
||||||
|
|
|
||||||
|
|
@ -113,7 +113,7 @@ void test_nuttx_syscall_fcntl01(FAR void **state)
|
||||||
flags = fcntl(fd[2], F_GETFL, 0);
|
flags = fcntl(fd[2], F_GETFL, 0);
|
||||||
assert_false((flags & (O_NDELAY | O_APPEND | O_WRONLY)) == 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);
|
assert_false(fcntl(fd[2], F_SETFL, 0) == -1);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue