From: Sam Shih Date: Fri, 5 Mar 2021 02:22:11 +0000 (+0800) Subject: pinctrl: mediatek: fix wrong assignment in mtk_get_pin_name X-Git-Tag: v2025.01-rc5-pxa1908~1941^2~6^2~9 X-Git-Url: http://git.dujemihanovic.xyz/%22/img/sics.gif/%22/static/git-favicon.png?a=commitdiff_plain;h=4fc5d4cedbbb567322849736bdee2687407add3f;p=u-boot.git 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 --- diff --git a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c index 4dd3f73ead..b700dd98bf 100644 --- a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c +++ b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c @@ -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;