[PATCH] gpio: stm32: create include file for driver private data

Simon Glass sjg at chromium.org
Sun Oct 24 21:54:09 CEST 2021


On Fri, 22 Oct 2021 at 12:12, Patrick Delaunay
<patrick.delaunay at foss.st.com> wrote:
>
> The stm32 gpio driver private data are not needed in arch include files,
> they are not used by code except for stm32 gpio and pincontrol drivers,
> using the same IP; the defines for this IP is moved in a new file
> "stm32_gpio_priv.h" in driver/gpio.
>
> This patch avoids to have duplicated file gpio.h for each SOC
> in MPU directory mach-stm32mp and in each MCU directory arch-stm32*
> and allows to remove CONFIG_GPIO_EXTRA_HEADER for all STM32.
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay at foss.st.com>
> ---
>
>  arch/arm/Kconfig                              |  2 -
>  arch/arm/include/asm/arch-stm32f4/gpio.h      | 15 ----
>  arch/arm/include/asm/arch-stm32f7/gpio.h      | 12 ---
>  arch/arm/include/asm/arch-stm32h7/gpio.h      | 12 ---
>  arch/arm/mach-stm32mp/include/mach/gpio.h     | 87 -------------------
>  board/st/stm32f746-disco/stm32f746-disco.c    |  1 -
>  drivers/gpio/stm32_gpio.c                     |  3 +-
>  .../gpio.h => drivers/gpio/stm32_gpio_priv.h  |  6 +-
>  drivers/pinctrl/pinctrl_stm32.c               |  3 +-
>  drivers/video/dw_mipi_dsi.c                   |  1 -
>  drivers/video/stm32/stm32_dsi.c               |  1 -
>  drivers/video/stm32/stm32_ltdc.c              |  1 -
>  12 files changed, 7 insertions(+), 137 deletions(-)
>  delete mode 100644 arch/arm/include/asm/arch-stm32f4/gpio.h
>  delete mode 100644 arch/arm/include/asm/arch-stm32f7/gpio.h
>  delete mode 100644 arch/arm/include/asm/arch-stm32h7/gpio.h
>  delete mode 100644 arch/arm/mach-stm32mp/include/mach/gpio.h
>  rename arch/arm/include/asm/arch-stm32/gpio.h => drivers/gpio/stm32_gpio_priv.h (94%)
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list