Skip to content

Commit

Permalink
pinctrl: mediatek: fix wrong assignment in mtk_get_pin_name
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
SamShih33 authored and trini committed Mar 20, 2021
1 parent e96bedf commit 4fc5d4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pinctrl/mediatek/pinctrl-mtk-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4fc5d4c

Please sign in to comment.