[incubator-nuttx] 03/03: Fix nxstyle warning

2021-02-28 Thread masayuki
This is an automated email from the ASF dual-hosted git repository.

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

commit 151cf495621bd09177e94e7c3c3d415c52af6f0f
Author: Xiang Xiao 
AuthorDate: Mon Feb 15 16:36:03 2021 +0800

Fix nxstyle warning

Signed-off-by: Xiang Xiao 
---
 boards/arm/imxrt/imxrt1050-evk/src/imxrt_bringup.c |   1 +
 .../lpc17xx_40xx/pnev5180b/src/lpc17_40_bringup.c  |  24 ++-
 .../lpc17xx_40xx/pnev5180b/src/lpc17_40_romfs.c|   4 +-
 .../arm/lpc43xx/bambino-200e/src/lpc43_appinit.c   |   2 +-
 .../lpc43xx/lpc4330-xplorer/src/lpc43_appinit.c|   2 +-
 boards/arm/lpc43xx/lpc4357-evb/src/lpc43_appinit.c |   2 +-
 boards/arm/sama5/sama5d2-xult/src/sam_at25.c   |   4 +-
 boards/arm/sama5/sama5d3-xplained/src/sam_at25.c   |   4 +-
 .../arm/sama5/sama5d3-xplained/src/sam_bringup.c   |   2 +-
 .../arm/sama5/sama5d3-xplained/src/sam_nandflash.c |   4 +-
 boards/arm/sama5/sama5d3x-ek/src/sam_at24.c|   7 +-
 boards/arm/sama5/sama5d3x-ek/src/sam_nandflash.c   |   4 +-
 boards/arm/sama5/sama5d4-ek/src/at25_main.c|   4 +-
 boards/arm/sama5/sama5d4-ek/src/sam_bringup.c  |   2 +-
 boards/arm/sama5/sama5d4-ek/src/sam_nandflash.c|   4 +-
 boards/arm/samv7/same70-xplained/src/sam_bringup.c |  12 +-
 boards/arm/samv7/samv71-xult/src/sam_bringup.c |   2 +-
 .../arm/stm32/clicker2-stm32/src/stm32_bringup.c   |   6 +-
 boards/arm/stm32/cloudctrl/src/stm32_w25.c |   4 +-
 boards/arm/stm32/fire-stm32v2/src/stm32_w25.c  |   4 +-
 boards/arm/stm32/nucleo-f207zg/src/stm32_bringup.c |   3 +-
 boards/arm/stm32/nucleo-f303ze/src/stm32_bringup.c |   3 +-
 boards/arm/stm32/omnibusf4/src/stm32_bringup.c |   1 -
 .../stm32/omnibusf4/src/stm32_romfs_initialize.c   |   4 +-
 boards/arm/stm32/shenzhou/src/stm32_w25.c  |   4 +-
 boards/arm/stm32/stm3240g-eval/src/stm32_bringup.c |   7 +-
 .../arm/stm32/stm32f103-minimum/src/stm32_at24.c   |   6 +-
 boards/arm/stm32/stm32f103-minimum/src/stm32_w25.c | 184 
 .../arm/stm32/stm32f411e-disco/src/stm32_bringup.c |   4 +-
 .../stm32f4discovery/src/stm32_romfs_initialize.c  |   4 +-
 .../stm32f0l0g0/nucleo-f091rc/src/stm32_bringup.c  |   3 +-
 .../nucleo-144/src/stm32_romfs_initialize.c|   4 +-
 .../arm/stm32l4/b-l475e-iot01a/src/stm32_bringup.c | 231 +++--
 .../arm/stm32l4/nucleo-l432kc/src/stm32_at45db.c   |  26 +--
 boards/arm/stm32l4/nucleo-l452re/src/stm32_adc.c   |   2 +-
 .../arm/stm32l4/nucleo-l476rg/src/stm32_appinit.c  |  24 +--
 .../nucleo-l496zg/src/stm32_appinitialize.c|  13 +-
 .../arm/stm32l4/stm32l4r9ai-disco/src/stm32_adc.c  |  45 ++--
 .../stm32l4/stm32l4r9ai-disco/src/stm32_appinit.c  |  10 +-
 .../arm/tiva/launchxl-cc1310/src/cc1310_bringup.c  |   4 +-
 .../tiva/launchxl-cc1312r1/src/cc1312_bringup.c|   4 +-
 boards/arm/tiva/lm3s6965-ek/src/lm_bringup.c   |   3 +-
 boards/arm/tiva/tm4c123g-launchpad/src/tm4c_at24.c |   5 +-
 boards/mips/pic32mx/mirtoo/src/pic32_appinit.c |   5 +-
 drivers/lcd/ili9340.c  |  10 +-
 libs/libc/grp/lib_find_grpfile.c   |   3 +-
 libs/libc/misc/lib_sendfile.c  |  10 +-
 libs/libc/pwd/lib_find_pwdfile.c   |   3 +-
 libs/libc/stdio/lib_libfwrite.c|  21 +-
 libs/libc/stdio/lib_perror.c   |   1 -
 50 files changed, 397 insertions(+), 348 deletions(-)

diff --git a/boards/arm/imxrt/imxrt1050-evk/src/imxrt_bringup.c 
b/boards/arm/imxrt/imxrt1050-evk/src/imxrt_bringup.c
index a99ad80..1148627 100644
--- a/boards/arm/imxrt/imxrt1050-evk/src/imxrt_bringup.c
+++ b/boards/arm/imxrt/imxrt1050-evk/src/imxrt_bringup.c
@@ -121,6 +121,7 @@ static int nsh_sdmmc_initialize(void)
  ret);
 }
 }
+
   return OK;
 }
 #else
diff --git a/boards/arm/lpc17xx_40xx/pnev5180b/src/lpc17_40_bringup.c 
b/boards/arm/lpc17xx_40xx/pnev5180b/src/lpc17_40_bringup.c
index a1bde89..65d9cab 100644
--- a/boards/arm/lpc17xx_40xx/pnev5180b/src/lpc17_40_bringup.c
+++ b/boards/arm/lpc17xx_40xx/pnev5180b/src/lpc17_40_bringup.c
@@ -1,4 +1,4 @@
-/*
+/
  * boards/arm/lpc17xx_40xx/pnev5180b/src/lpc17_40_bringup.c
  *
  *   Copyright (C) 2019 Gregory Nutt. All rights reserved.
@@ -31,11 +31,11 @@
  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  * POSSIBILITY OF SUCH DAMAGE.
  *
- */
+ /
 
-/*
+/
  * Included Files
- 

[incubator-nuttx] 03/03: Fix nxstyle warning

2020-11-30 Thread jerpelea
This is an automated email from the ASF dual-hosted git repository.

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

commit 6d5cda1db88da11c3dc7df549098890d5e840683
Author: Xiang Xiao 
AuthorDate: Fri Nov 27 19:45:58 2020 +0800

Fix nxstyle warning

Signed-off-by: Xiang Xiao 
---
 arch/arm/src/sama5/sam_ehci.c | 32 
 1 file changed, 24 insertions(+), 8 deletions(-)

diff --git a/arch/arm/src/sama5/sam_ehci.c b/arch/arm/src/sama5/sam_ehci.c
index 4910ef4..c794cf3 100644
--- a/arch/arm/src/sama5/sam_ehci.c
+++ b/arch/arm/src/sama5/sam_ehci.c
@@ -163,7 +163,9 @@ struct sam_qh_s
   uint8_t pad[8];  /* Padding to assure 32-byte alignment */
 };
 
-/* Internal representation of the EHCI Queue Element Transfer Descriptor (qTD) 
*/
+/* Internal representation of the EHCI Queue Element Transfer Descriptor
+ * (qTD)
+ */
 
 struct sam_qtd_s
 {
@@ -2115,7 +2117,9 @@ static int sam_async_setup(struct sam_rhport_s *rhport,
   tokenbits |= QTD_TOKEN_PID_IN;
 }
 
-  /* Allocate a new Queue Element Transfer Descriptor (qTD) for the status 
*/
+  /* Allocate a new Queue Element Transfer Descriptor (qTD) for the
+   * status
+   */
 
   qtd = sam_qtd_statusphase(tokenbits);
   if (qtd == NULL)
@@ -3927,7 +3931,9 @@ static int sam_free(FAR struct usbhost_driver_s *drvr, 
FAR uint8_t *buffer)
 {
   DEBUGASSERT(drvr && buffer);
 
-  /* No special action is require to free the transfer/descriptor buffer 
memory */
+  /* No special action is require to free the transfer/descriptor buffer
+   * memory
+   */
 
   kmm_free(buffer);
   return OK;
@@ -4072,7 +4078,9 @@ static int sam_ctrlin(FAR struct usbhost_driver_s *drvr, 
usbhost_ep_t ep0,
 req->index[1], req->index[0], len);
 #endif
 
-  /* We must have exclusive access to the EHCI hardware and data structures. */
+  /* We must have exclusive access to the EHCI hardware and data
+   * structures.
+   */
 
   ret = sam_takesem(_ehci.exclsem);
   if (ret < 0)
@@ -4172,7 +4180,9 @@ static ssize_t sam_transfer(FAR struct usbhost_driver_s 
*drvr,
 
   DEBUGASSERT(rhport && epinfo && buffer && buflen > 0);
 
-  /* We must have exclusive access to the EHCI hardware and data structures. */
+  /* We must have exclusive access to the EHCI hardware and data
+   * structures.
+   */
 
   ret = sam_takesem(_ehci.exclsem);
   if (ret < 0)
@@ -4282,7 +4292,9 @@ static int sam_asynch(FAR struct usbhost_driver_s *drvr, 
usbhost_ep_t ep,
 
   DEBUGASSERT(rhport && epinfo && buffer && buflen > 0);
 
-  /* We must have exclusive access to the EHCI hardware and data structures. */
+  /* We must have exclusive access to the EHCI hardware and data
+   * structures.
+   */
 
   ret = sam_takesem(_ehci.exclsem);
   if (ret < 0)
@@ -4713,7 +4725,9 @@ static int sam_reset(void)
   return -ETIMEDOUT;
 }
 
-  /* Now we can set the HCReset bit in the USBCMD register to initiate the 
reset */
+  /* Now we can set the HCReset bit in the USBCMD register to initiate the
+   * reset
+   */
 
   regval  = sam_getreg(>usbcmd);
   regval |= EHCI_USBCMD_HCRESET;
@@ -5154,7 +5168,9 @@ FAR struct usbhost_connection_s *sam_ehci_initialize(int 
controller)
 
   sam_putreg(regval, >usbcmd);
 
-  /* Start the host controller by setting the RUN bit in the USBCMD register. 
*/
+  /* Start the host controller by setting the RUN bit in the USBCMD
+   * register.
+   */
 
   regval  = sam_getreg(>usbcmd);
   regval |= EHCI_USBCMD_RUN;