You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ac...@apache.org on 2020/06/05 18:54:30 UTC

[incubator-nuttx] 03/03: Fix PR1201 nxstyle issues.

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

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

commit 36f54e280fa0041d2b353d8f4bf4dfb82ebc8fec
Author: Ouss4 <ab...@gmail.com>
AuthorDate: Fri Jun 5 18:41:58 2020 +0100

    Fix PR1201 nxstyle issues.
---
 boards/arm/stm32/olimex-stm32-p407/src/stm32_cs4344.c | 9 +++++----
 drivers/audio/cs4344.c                                | 8 ++++----
 2 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/boards/arm/stm32/olimex-stm32-p407/src/stm32_cs4344.c b/boards/arm/stm32/olimex-stm32-p407/src/stm32_cs4344.c
index 9ddac44..51ea0d1 100644
--- a/boards/arm/stm32/olimex-stm32-p407/src/stm32_cs4344.c
+++ b/boards/arm/stm32/olimex-stm32-p407/src/stm32_cs4344.c
@@ -95,10 +95,11 @@ int stm32_cs4344_initialize(int minor)
   audinfo("minor %d\n", minor);
   DEBUGASSERT(minor >= 0 && minor <= 25);
 
-  /* Have we already initialized?  Since we never uninitialize we must prevent
-   * multiple initializations.  This is necessary, for example, when the
-   * touchscreen example is used as a built-in application in NSH and can be
-   * called numerous time.  It will attempt to initialize each time.
+  /* Have we already initialized?  Since we never uninitialize we must
+   * prevent multiple initializations.  This is necessary, for example,
+   * when the touchscreen example is used as a built-in application in
+   * NSH and can be called numerous time.  It will attempt to initialize
+   * each time.
    */
 
   if (!initialized)
diff --git a/drivers/audio/cs4344.c b/drivers/audio/cs4344.c
index 0c2619b..907ef4c 100644
--- a/drivers/audio/cs4344.c
+++ b/drivers/audio/cs4344.c
@@ -146,13 +146,13 @@ static const struct audio_ops_s g_audioops =
   cs4344_pause,         /* pause */
   cs4344_resume,        /* resume */
 #endif
-  NULL,                  /* allocbuffer */
-  NULL,                  /* freebuffer */
+  NULL,                 /* allocbuffer */
+  NULL,                 /* freebuffer */
   cs4344_enqueuebuffer, /* enqueue_buffer */
   cs4344_cancelbuffer,  /* cancel_buffer */
   cs4344_ioctl,         /* ioctl */
-  NULL,                  /* read */
-  NULL,                  /* write */
+  NULL,                 /* read */
+  NULL,                 /* write */
   cs4344_reserve,       /* reserve */
   cs4344_release        /* release */
 };