projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e96bedf
)
pinctrl: mediatek: fix wrong assignment in mtk_get_pin_name
author
Sam Shih
<sam.shih@mediatek.com>
Fri, 5 Mar 2021 02:22:11 +0000
(10:22 +0800)
committer
Tom 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
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
b/drivers/pinctrl/mediatek/pinctrl-mtk-common.c
index 4dd3f73ead2b65d55387f944bbf916815bab6440..b700dd98bf61f87e47c0d55ddc8dec8a0c634104 100644
(file)
--- 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->
grp
s[selector].name)
+ if (!priv->soc->
pin
s[selector].name)
return mtk_pinctrl_dummy_name;
return priv->soc->pins[selector].name;