pinctrl: mediatek: fix wrong assignment in mtk_get_pin_name

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>
This commit is contained in:
Sam Shih 2021-03-05 10:22:11 +08:00 committed by Tom Rini
parent e96bedf146
commit 4fc5d4cedb

View file

@ -219,7 +219,7 @@ static const char *mtk_get_pin_name(struct udevice *dev,
{ {
struct mtk_pinctrl_priv *priv = dev_get_priv(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 mtk_pinctrl_dummy_name;
return priv->soc->pins[selector].name; return priv->soc->pins[selector].name;