[PATCH] pinctrl: stm32: set default gpio line names using pin names

Linus Walleij linus.walleij at linaro.org
Wed Jun 21 00:18:05 PDT 2023


On Tue, Jun 20, 2023 at 12:43 PM Valentin Caron
<valentin.caron at foss.st.com> wrote:

> Add stm32_pctrl_get_desc_pin_from_gpio function to find a stm32 pin
> descriptor which is matching with a gpio.
> Most of the time pin number is equal to pin index in array. So the first
> part of the function is useful to speed up.
>
> And during gpio bank register, we set default gpio names with pin names.
>
> Signed-off-by: Valentin Caron <valentin.caron at foss.st.com>

If I get some ACK from the STM32 pinctrl maintainers I can merge
this, seems useful! Maybe you already reviewed it internally at ST?
I personally don't mind if you bring over internal reviewed-by tags.

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list