From 2531d70ad2f2b2a07b44c9f5ded1f995d8d02356 Mon Sep 17 00:00:00 2001 From: "Kenneth J. Miller" Date: Fri, 23 Jun 2023 03:00:55 +0200 Subject: [PATCH] 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 --- drivers/serial/uart_stm32.c | 2 -- drivers/serial/uart_stm32.h | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/serial/uart_stm32.c b/drivers/serial/uart_stm32.c index ef95b6b40a9..47149a1de11 100644 --- a/drivers/serial/uart_stm32.c +++ b/drivers/serial/uart_stm32.c @@ -20,9 +20,7 @@ #include #include #include -#include #include -#include #include #include diff --git a/drivers/serial/uart_stm32.h b/drivers/serial/uart_stm32.h index 15cf0a501e5..81507adf457 100644 --- a/drivers/serial/uart_stm32.h +++ b/drivers/serial/uart_stm32.h @@ -13,6 +13,8 @@ #define ZEPHYR_DRIVERS_SERIAL_UART_STM32_H_ #include +#include +#include #include