Skip to content
Commit 740f5b08 authored by Andrzej Hajda's avatar Andrzej Hajda Committed by Linus Walleij
Browse files

pinctrl: mediatek: fix handling return value of mtk_pmx_find_gpio_mode



The function can return negative values, so its result should
be assigned to signed variable.

The problem has been detected using coccinelle semantic patch
scripts/coccinelle/tests/assign_signed_to_unsigned.cocci.

Fixes: 59ee9c96 ('pinctrl: mediatek: Add gpio_request_enable support')
Signed-off-by: default avatarAndrzej Hajda <a.hajda@samsung.com>
Acked-by: default avatarHongzhou Yang <hongzhou.yang@mediatek.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 337ea0fb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment