pinctrl: uniphier: fix .pin_dbg_show() callback
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 31 May 2016 06:30:10 +0000 (15:30 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 31 May 2016 08:56:16 +0000 (10:56 +0200)
Without this, reading the "pins" in the debugfs causes kernel BUG.

Fixes: 6e9088920258 ("pinctrl: UniPhier: add UniPhier pinctrl core support")
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/uniphier/pinctrl-uniphier-core.c

index 967400971d4554a05adf82a8e2a0b65168a2b22c..5d08de0b13f59d03891801e8193022648f3e62e0 100644 (file)
@@ -73,6 +73,12 @@ static void uniphier_pctl_pin_dbg_show(struct pinctrl_dev *pctldev,
        case UNIPHIER_PIN_PULL_DOWN:
                pull_dir = "DOWN";
                break;
+       case UNIPHIER_PIN_PULL_UP_FIXED:
+               pull_dir = "UP(FIXED)";
+               break;
+       case UNIPHIER_PIN_PULL_DOWN_FIXED:
+               pull_dir = "DOWN(FIXED)";
+               break;
        case UNIPHIER_PIN_PULL_NONE:
                pull_dir = "NONE";
                break;