drivers: serial: stm32: Make header file self-contained

Move select include directives from source to header file, as these pull
data types required by the struct definitions contained within it.

This promotes a more modular file structure.

Signed-off-by: Kenneth J. Miller <ken@miller.ec>
This commit is contained in:
Kenneth J. Miller 2023-06-23 03:00:55 +02:00 committed by Carles Cufí
commit 2531d70ad2
2 changed files with 2 additions and 2 deletions

View file

@ -20,9 +20,7 @@
#include <soc.h>
#include <zephyr/init.h>
#include <zephyr/drivers/interrupt_controller/exti_stm32.h>
#include <zephyr/drivers/uart.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/reset.h>
#include <zephyr/pm/policy.h>
#include <zephyr/pm/device.h>

View file

@ -13,6 +13,8 @@
#define ZEPHYR_DRIVERS_SERIAL_UART_STM32_H_
#include <zephyr/drivers/pinctrl.h>
#include <zephyr/drivers/reset.h>
#include <zephyr/drivers/uart.h>
#include <stm32_ll_usart.h>