Commit 53ded819 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Linus Walleij

pinctrl: Print the correct information in debugfs pinconf-state file

A bad copy&paste resulted in the debugfs pinconf-state file printing the
pin name instead of the state name. Fix it.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 6a40cdd5
...@@ -622,7 +622,7 @@ static const struct file_operations pinconf_dbg_pinname_fops = { ...@@ -622,7 +622,7 @@ static const struct file_operations pinconf_dbg_pinname_fops = {
static int pinconf_dbg_state_print(struct seq_file *s, void *d) static int pinconf_dbg_state_print(struct seq_file *s, void *d)
{ {
if (strlen(dbg_state_name)) if (strlen(dbg_state_name))
seq_printf(s, "%s\n", dbg_pinname); seq_printf(s, "%s\n", dbg_state_name);
else else
seq_printf(s, "No pin state set\n"); seq_printf(s, "No pin state set\n");
return 0; return 0;
......
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