Tag: 740f5b08d48956fa9644f2048081f129058e205a

pinctrl: mediatek: fix handling return value of mtk_pmx_find_gpio_mode

Author: Andrzej Hajda <a.hajda@samsung.com> 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: 59ee9c9 (‘pinctrl: mediatek: Add gpio_request_enable support’) Signed-off-by: Andrzej Hajda Acked-by: Hongzhou Yang Signed-off-by: Linus Walleij — drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 2 +- 1 file changed, 1 insertion(+), …

Continue reading