pinctrl: uniphier: fix .pin_dbg_show() callback
commit10ef8277ecupstream. Without this, reading the "pins" in the debugfs causes kernel BUG. Fixes:6e90889202("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
1bcafa3814
commit
2857aac419
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user