[PATCH 2/3] pinctrl: pinctrl_stm32: Use GPIOF_UNKNOWN to indicate not mapped pins

Patrick DELAUNAY patrick.delaunay at foss.st.com
Fri May 6 10:37:50 CEST 2022


Hi,

On 4/22/22 09:38, Patrice Chotard wrote:
> GPIOF_UNKNOWN becomes a valid pin muxing information to indicate
> that a pin is not mapped.
>
> Signed-off-by: Patrice Chotard <patrice.chotard at foss.st.com>
> ---
>
>   drivers/pinctrl/pinctrl_stm32.c | 2 --
>   1 file changed, 2 deletions(-)
>
> diff --git a/drivers/pinctrl/pinctrl_stm32.c b/drivers/pinctrl/pinctrl_stm32.c
> index 5d8e156d62..373f51f046 100644
> --- a/drivers/pinctrl/pinctrl_stm32.c
> +++ b/drivers/pinctrl/pinctrl_stm32.c
> @@ -220,8 +220,6 @@ static int stm32_pinctrl_get_pin_muxing(struct udevice *dev,
>   
>   	switch (mode) {
>   	case GPIOF_UNKNOWN:
> -		/* should never happen */
> -		return -EINVAL;
>   	case GPIOF_UNUSED:
>   		snprintf(buf, size, "%s", pinmux_mode[mode]);
>   		break;


Reviewed-by: Patrick Delaunay <patrick.delaunay at foss.st.com>

Thanks
Patrick




More information about the U-Boot mailing list