3aa6b6105f2392d5cfa7f4874c932a2e3202f3f2
[openwrt/staging/robimarko.git] /
1 From 6f18e581a7e98db3675b4c111701263647b20781 Mon Sep 17 00:00:00 2001
2 From: Sam Shih <sam.shih@mediatek.com>
3 Date: Thu, 17 Dec 2020 19:29:56 +0800
4 Subject: [PATCH 03/21] pinctrl: mediatek: fix wrong assignment in
5 mtk_get_pin_name
6
7 This is a bug fix for mtk pinctrl common part. Appearently pins should be
8 used instead of grps in mtk_get_pin_name().
9
10 Signed-off-by: Sam Shih <sam.shih@mediatek.com>
11 ---
12 drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15 --- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
16 +++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
17 @@ -219,7 +219,7 @@ static const char *mtk_get_pin_name(stru
18 {
19 struct mtk_pinctrl_priv *priv = dev_get_priv(dev);
20
21 - if (!priv->soc->grps[selector].name)
22 + if (!priv->soc->pins[selector].name)
23 return mtk_pinctrl_dummy_name;
24
25 return priv->soc->pins[selector].name;