Commit 53e73a28 authored by Clément Péron's avatar Clément Péron Committed by Linus Walleij

pinctrl: qcom: fix wrong pull status display for no_keeper SoC

DebugFS strings about pin pull status for no_keeper SoC are wrong

Fix this by adding a different string array for no_keeper SoC
Signed-off-by: default avatarClément Péron <peron.clem@gmail.com>
Signed-off-by: default avatarBjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent c5948707
...@@ -504,13 +504,19 @@ static void msm_gpio_dbg_show_one(struct seq_file *s, ...@@ -504,13 +504,19 @@ static void msm_gpio_dbg_show_one(struct seq_file *s,
int pull; int pull;
u32 ctl_reg; u32 ctl_reg;
static const char * const pulls[] = { static const char * const pulls_keeper[] = {
"no pull", "no pull",
"pull down", "pull down",
"keeper", "keeper",
"pull up" "pull up"
}; };
static const char * const pulls_no_keeper[] = {
"no pull",
"pull down",
"pull up",
};
if (!gpiochip_line_is_valid(chip, offset)) if (!gpiochip_line_is_valid(chip, offset))
return; return;
...@@ -524,7 +530,10 @@ static void msm_gpio_dbg_show_one(struct seq_file *s, ...@@ -524,7 +530,10 @@ static void msm_gpio_dbg_show_one(struct seq_file *s,
seq_printf(s, " %-8s: %-3s %d", g->name, is_out ? "out" : "in", func); seq_printf(s, " %-8s: %-3s %d", g->name, is_out ? "out" : "in", func);
seq_printf(s, " %dmA", msm_regval_to_drive(drive)); seq_printf(s, " %dmA", msm_regval_to_drive(drive));
seq_printf(s, " %s", pulls[pull]); if (pctrl->soc->pull_no_keeper)
seq_printf(s, " %s", pulls_no_keeper[pull]);
else
seq_printf(s, " %s", pulls_keeper[pull]);
seq_puts(s, "\n"); seq_puts(s, "\n");
} }
......
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