mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 08:01:08 +00:00
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:
parent
e96bedf146
commit
4fc5d4cedb
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue