2013-03-13 02:17:49

by Laurent Pinchart

[permalink] [raw]
Subject: [PATCH] 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: Laurent Pinchart <[email protected]>
---
drivers/pinctrl/pinconf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pinctrl/pinconf.c b/drivers/pinctrl/pinconf.c
index 8aefd28..dae927f 100644
--- a/drivers/pinctrl/pinconf.c
+++ b/drivers/pinctrl/pinconf.c
@@ -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)
{
if (strlen(dbg_state_name))
- seq_printf(s, "%s\n", dbg_pinname);
+ seq_printf(s, "%s\n", dbg_state_name);
else
seq_printf(s, "No pin state set\n");
return 0;
--
Regards,

Laurent Pinchart


2013-03-13 17:45:43

by Linus Walleij

[permalink] [raw]
Subject: Re: [PATCH] pinctrl: Print the correct information in debugfs pinconf-state file

On Wed, Mar 13, 2013 at 3:18 AM, Laurent Pinchart
<[email protected]> wrote:

> 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: Laurent Pinchart <[email protected]>

Applied to my fixes branch.

Yours,
Linus Walleij