pinctrl: mediatek: fix the return value in driving configuration functions
authorWeijie Gao <weijie.gao@mediatek.com>
Wed, 19 Jul 2023 09:16:42 +0000 (17:16 +0800)
committerTom Rini <trini@konsulko.com>
Thu, 3 Aug 2023 13:40:50 +0000 (09:40 -0400)
commit4fd0be037229bb558e36002d061967880d80ce88
tree02dfd53edd3c67333affeb340e96edc2fc7045b9
parent7cb50cd477b7a28221614e28400fdfe1ba4e61c2
pinctrl: mediatek: fix the return value in driving configuration functions

The original mediatek pinctrl functions for driving configuration
'mtk_pinconf_drive_set_*' do not return -ENOSUPP even if input
parameters are not supported.
This patch fixes the return value in those functions.

Signed-off-by: Sam Shih <sam.shih@mediatek.com>
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
drivers/pinctrl/mediatek/pinctrl-mtk-common.c