soc: stm32l4: Factorize includes declarations for GPIO driver

Group #include declarations for CONFIG_GPIO_STM32


Signed-off-by: Erwan Gouriou <erwan.gouriou@linaro.org>
This commit is contained in:
Erwan Gouriou 2020-03-11 11:34:06 +01:00 committed by Ioannis Glaropoulos
commit d65e54da5e

View file

@ -33,11 +33,6 @@
#include <stm32l4xx_ll_exti.h> #include <stm32l4xx_ll_exti.h>
#endif #endif
#ifdef CONFIG_GPIO_STM32
/* Required to enable VDDio2 for port G */
#include <stm32l4xx_ll_pwr.h>
#endif
#ifdef CONFIG_SERIAL_HAS_DRIVER #ifdef CONFIG_SERIAL_HAS_DRIVER
#include <stm32l4xx_ll_usart.h> #include <stm32l4xx_ll_usart.h>
#include <stm32l4xx_ll_lpuart.h> #include <stm32l4xx_ll_lpuart.h>
@ -84,6 +79,8 @@
#ifdef CONFIG_GPIO_STM32 #ifdef CONFIG_GPIO_STM32
#include <stm32l4xx_ll_gpio.h> #include <stm32l4xx_ll_gpio.h>
/* Required to enable VDDio2 for port G */
#include <stm32l4xx_ll_pwr.h>
#endif #endif
#ifdef CONFIG_ADC_STM32 #ifdef CONFIG_ADC_STM32