pinctrl: mediatek: fix wrong assignment in mtk_get_pin_name
authorSam Shih <sam.shih@mediatek.com>
Fri, 5 Mar 2021 02:22:11 +0000 (10:22 +0800)
committerTom Rini <trini@konsulko.com>
Sat, 20 Mar 2021 20:24:27 +0000 (16:24 -0400)
This is a bug fix for mtk pinctrl common part. Appearently pins should be
used instead of grps in mtk_get_pin_name().

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

index 4dd3f73ead2b65d55387f944bbf916815bab6440..b700dd98bf61f87e47c0d55ddc8dec8a0c634104 100644 (file)
@@ -219,7 +219,7 @@ static const char *mtk_get_pin_name(struct udevice *dev,
 {
        struct mtk_pinctrl_priv *priv = dev_get_priv(dev);
 
-       if (!priv->soc->grps[selector].name)
+       if (!priv->soc->pins[selector].name)
                return mtk_pinctrl_dummy_name;
 
        return priv->soc->pins[selector].name;