d83a89ab37e205f2c0364a1d0ebfc2719d99c6dd
[openwrt/staging/jow.git] /
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
6
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.
11
12 Signed-off-by: Sam Shih <sam.shih@mediatek.com>
13 Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
14 ---
15 drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 4 ++--
16 1 file changed, 2 insertions(+), 2 deletions(-)
17
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
21 return err;
22 }
23
24 - return 0;
25 + return err;
26 }
27
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
30 return err;
31 }
32
33 - return 0;
34 + return err;
35 }
36
37 int mtk_pinconf_drive_set(struct udevice *dev, u32 pin, u32 arg)