gpio: stm32: create include file for driver private data
authorPatrick Delaunay <patrick.delaunay@foss.st.com>
Fri, 22 Oct 2021 18:12:34 +0000 (20:12 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Wed, 10 Nov 2021 16:03:36 +0000 (17:03 +0100)
commit56a368f6610fec233e803367640cc8ea37251615
tree73c59177d64e34e7b836124b917a8c5865818844
parentc67ca25dfc5c1da7359ab72cdf9b5e5a5579c162
gpio: stm32: create include file for driver private data

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@foss.st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
12 files changed:
arch/arm/Kconfig
arch/arm/include/asm/arch-stm32f4/gpio.h [deleted file]
arch/arm/include/asm/arch-stm32f7/gpio.h [deleted file]
arch/arm/include/asm/arch-stm32h7/gpio.h [deleted file]
arch/arm/mach-stm32mp/include/mach/gpio.h [deleted file]
board/st/stm32f746-disco/stm32f746-disco.c
drivers/gpio/stm32_gpio.c
drivers/gpio/stm32_gpio_priv.h [moved from arch/arm/include/asm/arch-stm32/gpio.h with 94% similarity]
drivers/pinctrl/pinctrl_stm32.c
drivers/video/dw_mipi_dsi.c
drivers/video/stm32/stm32_dsi.c
drivers/video/stm32/stm32_ltdc.c