pinctrl: gemini: Fix usage of 3512 groups
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 22 Nov 2017 20:04:14 +0000 (21:04 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 30 Nov 2017 14:36:34 +0000 (15:36 +0100)
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>
drivers/pinctrl/pinctrl-gemini.c

index e9b83e2..c11b8f1 100644 (file)
@@ -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;
        }