diff options
author | Patrice Chotard | 2022-04-22 09:38:30 +0200 |
---|---|---|
committer | Patrice Chotard | 2022-05-10 13:54:48 +0200 |
commit | 234b03f3a965b3e3ef5d7efb42c7d4c45bb401ef (patch) | |
tree | aa5d52375903903947042f8c089f4ed8eb73e53a /drivers | |
parent | 4382e55c428269c36777b20d7103afbf6be67041 (diff) |
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 <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pinctrl/pinctrl_stm32.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/pinctrl/pinctrl_stm32.c b/drivers/pinctrl/pinctrl_stm32.c index 5d8e156d62a..373f51f0462 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; |