Commit 793b9184 authored by Linus Walleij's avatar Linus Walleij

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: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 6702abb3
...@@ -2322,7 +2322,7 @@ static const struct gemini_pin_conf *gemini_get_pin_conf(struct gemini_pmx *pmx, ...@@ -2322,7 +2322,7 @@ static const struct gemini_pin_conf *gemini_get_pin_conf(struct gemini_pmx *pmx,
int i; int i;
for (i = 0; i < pmx->nconfs; i++) { for (i = 0; i < pmx->nconfs; i++) {
retconf = &gemini_confs_3516[i]; retconf = &pmx->confs[i];
if (retconf->pin == pin) if (retconf->pin == pin)
return retconf; return retconf;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment