style: fix spelling in code comments and strings

This commit is contained in:
Lars Kruse
2025-05-03 06:16:30 +02:00
committed by Xiang Xiao
parent b2315e98c4
commit 3ce85ca54e
1670 changed files with 3162 additions and 2991 deletions
+3 -3
View File
@@ -719,7 +719,7 @@ static ssize_t cdcmbim_write(FAR struct file *filep, FAR const char *buffer,
if (ret < 0)
{
iob_free_chain(iob);
uerr("CDCMBIM copyin failed: %d\n", ret);
uerr("CDCMBIM copying failed: %d\n", ret);
goto errout;
}
@@ -1786,7 +1786,7 @@ static int cdcncm_setinterface(FAR struct cdcncm_driver_s *self,
}
else
{
uerr("invailid interface %d\n", interface);
uerr("invalid interface %d\n", interface);
return -EINVAL;
}
@@ -2791,7 +2791,7 @@ static int cdcncm_setup(FAR struct usbdevclass_driver_s *driver,
if (ret < 0)
{
iob_free_chain(iob);
uerr("CDCMBIM copyin failed: %d\n", ret);
uerr("CDCMBIM copying failed: %d\n", ret);
return ret;
}
+1 -1
View File
@@ -1785,7 +1785,7 @@ void usbmsc_uninitialize(FAR void *handle)
priv = &alloc->dev;
/* If the thread hasn't already exitted, tell it to exit now */
/* If the thread hasn't already exited, tell it to exit now */
if (priv->thstate != USBMSC_STATE_NOTSTARTED)
{
+1 -1
View File
@@ -227,7 +227,7 @@
#define USBMSC_STATE_CMDWRITE (5) /* Processing a SCSI write command */
#define USBMSC_STATE_CMDFINISH (6) /* Finish command processing */
#define USBMSC_STATE_CMDSTATUS (7) /* Processing the final status of the command */
#define USBMSC_STATE_TERMINATED (8) /* Thread has exitted */
#define USBMSC_STATE_TERMINATED (8) /* Thread has exited */
/* Event communicated to worker thread */
+2 -2
View File
@@ -372,7 +372,7 @@ static int usbmsc_scsi_wait(FAR struct usbmsc_dev_s *priv)
/* A flag is used to prevent driving up the semaphore count. This function
* is called (primarily) from the SCSI work thread so we must disable
* interrupts momentarily to assure that test of the flag and the wait fo
* interrupts momentarily to assure that test of the flag and the wait for
* the semaphore count are atomic. Interrupts will, of course, be re-
* enabled while we wait for the event.
*/
@@ -2037,7 +2037,7 @@ static int usbmsc_cmdparsestate(FAR struct usbmsc_dev_s *priv)
* case SCSI_CMD_WRITEANDVERIFY: 0x2e Optional
*/
case SCSI_CMD_VERIFY10: /* 0x2f Opt, excpt Windows */
case SCSI_CMD_VERIFY10: /* 0x2f Opt, except Windows */
ret = usbmsc_cmdverify10(priv);
break;