Skip to content

Commit

Permalink
Fix some minor style issues
Browse files Browse the repository at this point in the history
Fix typo and comment style in:
* audio/audio_comp.c
* drivers/drivers_initialize.c
* drivers/pipes/fifo.c

Signed-off-by: Huang Qi <[email protected]>
  • Loading branch information
no1wudi authored and jerpelea committed Nov 20, 2024
1 parent 3a6de58 commit fd1b525
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions audio/audio_comp.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ static int audio_comp_getcaps(FAR struct audio_lowerhalf_s *dev, int type,
* Name: audio_comp_configure
*
* Description:
* Configure the audio device for the specified mode of operation.
* Configure the audio device for the specified mode of operation.
*
****************************************************************************/

Expand Down Expand Up @@ -603,7 +603,7 @@ static int audio_comp_freebuffer(FAR struct audio_lowerhalf_s *dev,
/****************************************************************************
* Name: audio_comp_enqueuebuffer
*
* Description: Enqueue an Audio Pipeline Buffer for playback/ processing.
* Description: Enqueue an Audio Pipeline Buffer for playback/processing.
*
****************************************************************************/

Expand Down Expand Up @@ -699,7 +699,7 @@ static int audio_comp_ioctl(FAR struct audio_lowerhalf_s *dev, int cmd,
/****************************************************************************
* Name: audio_comp_read
*
* Description: Lower-half logic for read commands.
* Description: Lower-half logic for read commands.
*
****************************************************************************/

Expand Down Expand Up @@ -729,7 +729,7 @@ static int audio_comp_read(FAR struct audio_lowerhalf_s *dev,
/****************************************************************************
* Name: audio_comp_write
*
* Description: Lower-half logic for write commands.
* Description: Lower-half logic for write commands.
*
****************************************************************************/

Expand Down
2 changes: 1 addition & 1 deletion drivers/drivers_initialize.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
****************************************************************************/

/* Check if only one console device is selected.
* If you get this errro, search your .config file for CONSOLE_XXX_CONSOLE
* If you get this error, search your .config file for CONSOLE_XXX_CONSOLE
* options and remove what is not needed.
*/

Expand Down
4 changes: 2 additions & 2 deletions drivers/pipes/fifo.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ static const struct file_operations g_fifo_fops =
* Name: nx_mkfifo
*
* Description:
* nx_mkfifo() makes a FIFO device driver file with name 'pathname.' Unlike
* nx_mkfifo() makes a FIFO device driver file with name 'pathname'. Unlike
* Linux, a NuttX FIFO is not a special file type but simply a device
* driver instance. 'mode' specifies the FIFO's permissions.
*
Expand All @@ -76,7 +76,7 @@ static const struct file_operations g_fifo_fops =
* must have been opened from both reading and writing before input or
* output can be performed. This FIFO implementation will block all
* attempts to open a FIFO read-only until at least one thread has opened
* the FIFO for writing.
* the FIFO for writing.
*
* If all threads that write to the FIFO have closed, subsequent calls to
* read() on the FIFO will return 0 (end-of-file).
Expand Down

0 comments on commit fd1b525

Please sign in to comment.