From: Patrice Chotard Date: Fri, 22 Apr 2022 07:38:30 +0000 (+0200) Subject: pinctrl: pinctrl_stm32: Use GPIOF_UNKNOWN to indicate not mapped pins X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=234b03f3a965b3e3ef5d7efb42c7d4c45bb401ef;p=u-boot.git pinctrl: pinctrl_stm32: Use GPIOF_UNKNOWN to indicate not mapped pins GPIOF_UNKNOWN becomes a valid pin muxing information to indicate that a pin is not mapped. Signed-off-by: Patrice Chotard Reviewed-by: Patrick Delaunay --- 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;