From 234b03f3a965b3e3ef5d7efb42c7d4c45bb401ef Mon Sep 17 00:00:00 2001 From: Patrice Chotard Date: Fri, 22 Apr 2022 09:38:30 +0200 Subject: [PATCH] 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 --- 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; -- 2.39.5