From 1a53a2f882a84e0955a046c76ef34c13a8ec072c Mon Sep 17 00:00:00 2001 From: KernelGuruMeditation Date: Fri, 20 Nov 2020 19:45:23 +0000 Subject: [PATCH] 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 f50ab0c69e..1a0a7bcf0e 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 ca6da0c069..d15173a367 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 #include - #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. */