[PATCH 2/3] pinctrl: pinctrl_stm32: Use GPIOF_UNKNOWN to indicate not mapped pins
Patrice CHOTARD
patrice.chotard at foss.st.com
Tue May 10 10:06:24 CEST 2022
On 5/6/22 10:37, Patrick DELAUNAY wrote:
> 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
>
>
Applied to u-boot-stm32
Thanks
Patrice
More information about the U-Boot
mailing list