[PATCH 126/149] board: st: Remove <common.h> and add needed includes
Patrice CHOTARD
patrice.chotard at foss.st.com
Fri May 17 08:06:21 CEST 2024
On 5/1/24 04:42, Tom Rini wrote:
> Remove <common.h> from this board vendor directory and when needed
> add missing include files directly.
>
> Signed-off-by: Tom Rini <trini at konsulko.com>
> ---
> Cc: Patrick Delaunay <patrick.delaunay at foss.st.com>
> Cc: Patrice Chotard <patrice.chotard at foss.st.com>
> Cc: Kamil Lulko <kamil.lulko at gmail.com>
> Cc: Vikas Manocha <vikas.manocha at st.com>
> Cc: Dillon Min <dillon.minfei at gmail.com>
> ---
> board/st/common/cmd_stboard.c | 1 -
> board/st/common/stm32mp_dfu.c | 1 -
> board/st/common/stm32mp_dfu_virt.c | 1 -
> board/st/common/stpmic1.c | 1 -
> board/st/common/stusb160x.c | 1 -
> board/st/stih410-b2260/board.c | 1 -
> board/st/stm32f429-discovery/led.c | 1 -
> board/st/stm32f429-discovery/stm32f429-discovery.c | 1 -
> board/st/stm32f429-evaluation/stm32f429-evaluation.c | 1 -
> board/st/stm32f469-discovery/stm32f469-discovery.c | 1 -
> board/st/stm32f746-disco/stm32f746-disco.c | 2 +-
> board/st/stm32h743-disco/stm32h743-disco.c | 1 -
> board/st/stm32h743-eval/stm32h743-eval.c | 1 -
> board/st/stm32h750-art-pi/stm32h750-art-pi.c | 1 -
> board/st/stm32mp1/spl.c | 1 -
> board/st/stm32mp1/stm32mp1.c | 1 -
> 16 files changed, 1 insertion(+), 16 deletions(-)
>
> diff --git a/board/st/common/cmd_stboard.c b/board/st/common/cmd_stboard.c
> index c8c0bad5da16..50da063051b8 100644
> --- a/board/st/common/cmd_stboard.c
> +++ b/board/st/common/cmd_stboard.c
> @@ -30,7 +30,6 @@
> */
>
> #ifndef CONFIG_SPL_BUILD
> -#include <common.h>
> #include <command.h>
> #include <console.h>
> #include <misc.h>
> diff --git a/board/st/common/stm32mp_dfu.c b/board/st/common/stm32mp_dfu.c
> index 77edb86e78c1..1db8e45480e1 100644
> --- a/board/st/common/stm32mp_dfu.c
> +++ b/board/st/common/stm32mp_dfu.c
> @@ -3,7 +3,6 @@
> * Copyright (C) 2020, STMicroelectronics - All Rights Reserved
> */
>
> -#include <common.h>
> #include <blk.h>
> #include <dm.h>
> #include <dfu.h>
> diff --git a/board/st/common/stm32mp_dfu_virt.c b/board/st/common/stm32mp_dfu_virt.c
> index f0f99605796a..4049d72bf9d5 100644
> --- a/board/st/common/stm32mp_dfu_virt.c
> +++ b/board/st/common/stm32mp_dfu_virt.c
> @@ -3,7 +3,6 @@
> * Copyright (C) 2023, STMicroelectronics - All Rights Reserved
> */
>
> -#include <common.h>
> #include <dfu.h>
> #include <dm.h>
> #include <misc.h>
> diff --git a/board/st/common/stpmic1.c b/board/st/common/stpmic1.c
> index 969ad484864d..45c2bb5bceac 100644
> --- a/board/st/common/stpmic1.c
> +++ b/board/st/common/stpmic1.c
> @@ -5,7 +5,6 @@
>
> #define LOG_CATEGORY LOGC_BOARD
>
> -#include <common.h>
> #include <dm.h>
> #include <log.h>
> #include <asm/io.h>
> diff --git a/board/st/common/stusb160x.c b/board/st/common/stusb160x.c
> index f0385e5e3830..e1ad8b00717a 100644
> --- a/board/st/common/stusb160x.c
> +++ b/board/st/common/stusb160x.c
> @@ -8,7 +8,6 @@
>
> #define LOG_CATEGORY UCLASS_I2C_GENERIC
>
> -#include <common.h>
> #include <dm.h>
> #include <i2c.h>
>
> diff --git a/board/st/stih410-b2260/board.c b/board/st/stih410-b2260/board.c
> index 82817571ae3d..a912712c9dd9 100644
> --- a/board/st/stih410-b2260/board.c
> +++ b/board/st/stih410-b2260/board.c
> @@ -4,7 +4,6 @@
> * Author(s): Patrice Chotard, <patrice.chotard at foss.st.com> for STMicroelectronics.
> */
>
> -#include <common.h>
> #include <cpu_func.h>
> #include <init.h>
> #include <asm/cache.h>
> diff --git a/board/st/stm32f429-discovery/led.c b/board/st/stm32f429-discovery/led.c
> index 8dda6a97bd1c..4b8038341b9e 100644
> --- a/board/st/stm32f429-discovery/led.c
> +++ b/board/st/stm32f429-discovery/led.c
> @@ -4,7 +4,6 @@
> * Kamil Lulko, <kamil.lulko at gmail.com>
> */
>
> -#include <common.h>
> #include <status_led.h>
> #include <asm-generic/gpio.h>
>
> diff --git a/board/st/stm32f429-discovery/stm32f429-discovery.c b/board/st/stm32f429-discovery/stm32f429-discovery.c
> index 55e464cc7cf1..22d751b44d3d 100644
> --- a/board/st/stm32f429-discovery/stm32f429-discovery.c
> +++ b/board/st/stm32f429-discovery/stm32f429-discovery.c
> @@ -10,7 +10,6 @@
> * Kamil Lulko, <kamil.lulko at gmail.com>
> */
>
> -#include <common.h>
> #include <dm.h>
> #include <env.h>
> #include <init.h>
> diff --git a/board/st/stm32f429-evaluation/stm32f429-evaluation.c b/board/st/stm32f429-evaluation/stm32f429-evaluation.c
> index 25472f041fef..db59ebb838e7 100644
> --- a/board/st/stm32f429-evaluation/stm32f429-evaluation.c
> +++ b/board/st/stm32f429-evaluation/stm32f429-evaluation.c
> @@ -4,7 +4,6 @@
> * Author(s): Patrice Chotard, <patrice.chotard at foss.st.com> for STMicroelectronics.
> */
>
> -#include <common.h>
> #include <dm.h>
> #include <env.h>
> #include <init.h>
> diff --git a/board/st/stm32f469-discovery/stm32f469-discovery.c b/board/st/stm32f469-discovery/stm32f469-discovery.c
> index 9ed6c1e67680..134d207d95d8 100644
> --- a/board/st/stm32f469-discovery/stm32f469-discovery.c
> +++ b/board/st/stm32f469-discovery/stm32f469-discovery.c
> @@ -4,7 +4,6 @@
> * Author(s): Patrice CHOTARD, <patrice.chotard at foss.st.com> for STMicroelectronics.
> */
>
> -#include <common.h>
> #include <dm.h>
> #include <env.h>
> #include <init.h>
> diff --git a/board/st/stm32f746-disco/stm32f746-disco.c b/board/st/stm32f746-disco/stm32f746-disco.c
> index 0f9666008430..6d86e4fe7aab 100644
> --- a/board/st/stm32f746-disco/stm32f746-disco.c
> +++ b/board/st/stm32f746-disco/stm32f746-disco.c
> @@ -4,7 +4,7 @@
> * Author(s): Vikas Manocha, <vikas.manocha at st.com> for STMicroelectronics.
> */
>
> -#include <common.h>
> +#include <config.h>
> #include <dm.h>
> #include <init.h>
> #include <log.h>
> diff --git a/board/st/stm32h743-disco/stm32h743-disco.c b/board/st/stm32h743-disco/stm32h743-disco.c
> index 4ca5e847212e..35ef9ff9e288 100644
> --- a/board/st/stm32h743-disco/stm32h743-disco.c
> +++ b/board/st/stm32h743-disco/stm32h743-disco.c
> @@ -4,7 +4,6 @@
> * Author(s): Patrice Chotard, <patrice.chotard at foss.st.com> for STMicroelectronics.
> */
>
> -#include <common.h>
> #include <dm.h>
> #include <init.h>
> #include <log.h>
> diff --git a/board/st/stm32h743-eval/stm32h743-eval.c b/board/st/stm32h743-eval/stm32h743-eval.c
> index 4ca5e847212e..35ef9ff9e288 100644
> --- a/board/st/stm32h743-eval/stm32h743-eval.c
> +++ b/board/st/stm32h743-eval/stm32h743-eval.c
> @@ -4,7 +4,6 @@
> * Author(s): Patrice Chotard, <patrice.chotard at foss.st.com> for STMicroelectronics.
> */
>
> -#include <common.h>
> #include <dm.h>
> #include <init.h>
> #include <log.h>
> diff --git a/board/st/stm32h750-art-pi/stm32h750-art-pi.c b/board/st/stm32h750-art-pi/stm32h750-art-pi.c
> index 0d39ce849a62..75aa4d139fb4 100644
> --- a/board/st/stm32h750-art-pi/stm32h750-art-pi.c
> +++ b/board/st/stm32h750-art-pi/stm32h750-art-pi.c
> @@ -4,7 +4,6 @@
> * Author(s): Dillon Min <dillon.minfei at gmail.com>
> */
>
> -#include <common.h>
> #include <dm.h>
> #include <init.h>
> #include <log.h>
> diff --git a/board/st/stm32mp1/spl.c b/board/st/stm32mp1/spl.c
> index 8b4a529f759a..d63dffd97e87 100644
> --- a/board/st/stm32mp1/spl.c
> +++ b/board/st/stm32mp1/spl.c
> @@ -4,7 +4,6 @@
> */
>
> #include <config.h>
> -#include <common.h>
> #include <power/pmic.h>
> #include <power/stpmic1.h>
> #include <asm/arch/sys_proto.h>
> diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c
> index db15d78237ea..97532a8156ff 100644
> --- a/board/st/stm32mp1/stm32mp1.c
> +++ b/board/st/stm32mp1/stm32mp1.c
> @@ -5,7 +5,6 @@
>
> #define LOG_CATEGORY LOGC_BOARD
>
> -#include <common.h>
> #include <adc.h>
> #include <bootm.h>
> #include <button.h>
Hi Tom
Reviewed-by: Patrice Chotard <patrice.chotard at foss.st.com>
Thanks
Patrice
More information about the U-Boot
mailing list