You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by bt...@apache.org on 2020/11/22 08:29:01 UTC

[incubator-nuttx] 02/04: Fix code style

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

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

commit 1a53a2f882a84e0955a046c76ef34c13a8ec072c
Author: KernelGuruMeditation <nu...@gmail.com>
AuthorDate: Fri Nov 20 19:45:23 2020 +0000

    Fix code style
---
 arch/arm/src/stm32h7/stm32_otghost.c                 | 2 +-
 boards/arm/stm32h7/nucleo-h743zi/src/stm32_bringup.c | 5 -----
 2 files changed, 1 insertion(+), 6 deletions(-)

diff --git a/arch/arm/src/stm32h7/stm32_otghost.c b/arch/arm/src/stm32h7/stm32_otghost.c
index f50ab0c..1a0a7bc 100644
--- a/arch/arm/src/stm32h7/stm32_otghost.c
+++ b/arch/arm/src/stm32h7/stm32_otghost.c
@@ -5482,7 +5482,7 @@ FAR struct usbhost_connection_s *stm32_otgfshost_initialize(int controller)
   /* Enable VDD33USB supply level detector */
 
   regval |= STM32_PWR_CR3_USB33DEN;
-  stm32_putreg( STM32_PWR_CR3, regval );
+  stm32_putreg(STM32_PWR_CR3, regval);
 
   while ((stm32_getreg(STM32_PWR_CR3) & STM32_PWR_CR3_USB33RDY) == 0)
     {
diff --git a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_bringup.c b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_bringup.c
index ca6da0c..d15173a 100644
--- a/boards/arm/stm32h7/nucleo-h743zi/src/stm32_bringup.c
+++ b/boards/arm/stm32h7/nucleo-h743zi/src/stm32_bringup.c
@@ -44,7 +44,6 @@
 #include <syslog.h>
 #include <errno.h>
 
-
 #define HAVE_USBHOST 1
 #define CONFIG_USBMONITOR 1
 
@@ -57,7 +56,6 @@
 #include "stm32_usb.h"
 #endif
 
-
 #include "nucleo-h743zi.h"
 
 #ifdef CONFIG_BUTTONS
@@ -236,9 +234,7 @@ int stm32_bringup(void)
     }
 #endif /* CONFIG_BUTTONS */
 
-
 #ifdef HAVE_USBHOST
-
   /* Initialize USB host operation.  stm32_usbhost_initialize() starts a thread
    * will monitor for USB connection and disconnection events.
    */
@@ -264,7 +260,6 @@ int stm32_bringup(void)
     }
 #endif
 
-
 #ifdef CONFIG_ADC
   /* Initialize ADC and register the ADC driver. */