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
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().
10 Signed-off-by: Sam Shih <sam.shih@mediatek.com>
12 drivers/pinctrl/mediatek/pinctrl-mtk-common.c | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
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
19 struct mtk_pinctrl_priv *priv = dev_get_priv(dev);
21 - if (!priv->soc->grps[selector].name)
22 + if (!priv->soc->pins[selector].name)
23 return mtk_pinctrl_dummy_name;
25 return priv->soc->pins[selector].name;