1 From 783c46d29f8b186bd65f3e83f38ad883e8bcec69 Mon Sep 17 00:00:00 2001
2 From: Weijie Gao <weijie.gao@mediatek.com>
3 Date: Wed, 19 Jul 2023 17:16:42 +0800
4 Subject: [PATCH 13/29] pinctrl: mediatek: fix the return value in driving
5 configuration functions
7 The original mediatek pinctrl functions for driving configuration
8 'mtk_pinconf_drive_set_*' do not return -ENOSUPP even if input
9 parameters are not supported.
10 This patch fixes the return value in those functions.
12 Signed-off-by: Sam Shih <sam.shih@mediatek.com>
13 Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
15 drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 4 ++--
16 1 file changed, 2 insertions(+), 2 deletions(-)
18 --- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
19 +++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
20 @@ -513,7 +513,7 @@ int mtk_pinconf_drive_set_v0(struct udev
28 int mtk_pinconf_drive_set_v1(struct udevice *dev, u32 pin, u32 arg)
29 @@ -531,7 +531,7 @@ int mtk_pinconf_drive_set_v1(struct udev
37 int mtk_pinconf_drive_set(struct udevice *dev, u32 pin, u32 arg)