From d65e54da5e0de20146895cb87f8344ce8ea8cc56 Mon Sep 17 00:00:00 2001 From: Erwan Gouriou Date: Wed, 11 Mar 2020 11:34:06 +0100 Subject: [PATCH] soc: stm32l4: Factorize includes declarations for GPIO driver Group #include declarations for CONFIG_GPIO_STM32 Signed-off-by: Erwan Gouriou --- soc/arm/st_stm32/stm32l4/soc.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/soc/arm/st_stm32/stm32l4/soc.h b/soc/arm/st_stm32/stm32l4/soc.h index 3b58bd13327..462c9f35d86 100644 --- a/soc/arm/st_stm32/stm32l4/soc.h +++ b/soc/arm/st_stm32/stm32l4/soc.h @@ -33,11 +33,6 @@ #include #endif -#ifdef CONFIG_GPIO_STM32 -/* Required to enable VDDio2 for port G */ -#include -#endif - #ifdef CONFIG_SERIAL_HAS_DRIVER #include #include @@ -84,6 +79,8 @@ #ifdef CONFIG_GPIO_STM32 #include +/* Required to enable VDDio2 for port G */ +#include #endif #ifdef CONFIG_ADC_STM32