From fd1b52579bbd55127cace586feeac598fa59fa60 Mon Sep 17 00:00:00 2001 From: Huang Qi Date: Wed, 20 Nov 2024 16:35:01 +0800 Subject: [PATCH] Fix some minor style issues Fix typo and comment style in: * audio/audio_comp.c * drivers/drivers_initialize.c * drivers/pipes/fifo.c Signed-off-by: Huang Qi --- audio/audio_comp.c | 8 ++++---- drivers/drivers_initialize.c | 2 +- drivers/pipes/fifo.c | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/audio/audio_comp.c b/audio/audio_comp.c index 82300e7dd522a..215eba2f40a82 100644 --- a/audio/audio_comp.c +++ b/audio/audio_comp.c @@ -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. * ****************************************************************************/ @@ -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. * ****************************************************************************/ @@ -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. * ****************************************************************************/ @@ -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. * ****************************************************************************/ diff --git a/drivers/drivers_initialize.c b/drivers/drivers_initialize.c index 7f36f13f6df11..9c74301f49c4f 100644 --- a/drivers/drivers_initialize.c +++ b/drivers/drivers_initialize.c @@ -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. */ diff --git a/drivers/pipes/fifo.c b/drivers/pipes/fifo.c index d6bbc3d2bc5b8..f96f23b6525a5 100644 --- a/drivers/pipes/fifo.c +++ b/drivers/pipes/fifo.c @@ -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. * @@ -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).