summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2017-11-22 21:04:14 +0100
committerLinus Walleij <linus.walleij@linaro.org>2017-11-30 15:36:34 +0100
commit793b9184047f3d7fe4fe234a46951dabfc3cfeeb (patch)
tree71f0cb01b37ccba9a51ae49fc1cf605689a61228 /drivers/pinctrl
parent6702abb3bf2394f250af0ee04070227bb5dda788 (diff)
downloadlinux-793b9184047f3d7fe4fe234a46951dabfc3cfeeb.tar.gz
linux-793b9184047f3d7fe4fe234a46951dabfc3cfeeb.tar.bz2
linux-793b9184047f3d7fe4fe234a46951dabfc3cfeeb.zip
pinctrl: gemini: Fix usage of 3512 groups
The pin config lookup function was still hardcoding the 3516 pin set, which is obviously wrong. Use the pointer in the state container. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r--drivers/pinctrl/pinctrl-gemini.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinctrl-gemini.c b/drivers/pinctrl/pinctrl-gemini.c
index e9b83e291edf..c11b8f14d841 100644
--- a/drivers/pinctrl/pinctrl-gemini.c
+++ b/drivers/pinctrl/pinctrl-gemini.c
@@ -2322,7 +2322,7 @@ static const struct gemini_pin_conf *gemini_get_pin_conf(struct gemini_pmx *pmx,
int i;
for (i = 0; i < pmx->nconfs; i++) {
- retconf = &gemini_confs_3516[i];
+ retconf = &pmx->confs[i];
if (retconf->pin == pin)
return retconf;
}