[PATCH] arm: stm32: cleanup arch gpio.h

Patrick DELAUNAY patrick.delaunay at st.com
Wed Oct 21 15:38:42 CEST 2020


Hi,

> From: Patrick DELAUNAY <patrick.delaunay at st.com>
> Sent: vendredi 2 octobre 2020 14:09
> 
> Cosmetic update of gpio.h:
> - remove enumerate: stm32_gpio_port, stm32_gpio_pin
>   because STM32_GPIO_XXX values are unused
> - move STM32_GPIOS_PER_BANK in stm32_gpio.c
>   as its value is IP dependent and not arch dependent
> 
> No functional change as number of banks and number of gpio by banks is
> managed by device tree since since DM migration and commit 8f651ca60ba1
> ("pinctrl: stm32: Add get_pins_count() ops").
> 
> Signed-off-by: Patrick Delaunay <patrick.delaunay at st.com>
> ---
> 
>  arch/arm/include/asm/arch-stm32/gpio.h    | 37 ++---------------------
>  arch/arm/mach-stm32mp/include/mach/gpio.h | 37 ++---------------------
>  drivers/gpio/stm32_gpio.c                 |  2 ++
>  3 files changed, 6 insertions(+), 70 deletions(-)
> 

Applied to u-boot-stm/master, thanks!

Regards

Patrick


More information about the U-Boot mailing list