All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] pinctrl: baytrail: Fix debugfs offset output
@ 2017-01-26 13:17 Alexander Stein
  2017-01-26 15:44 ` Linus Walleij
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Stein @ 2017-01-26 13:17 UTC (permalink / raw)
  To: Mika Westerberg, Heikki Krogerus, Linus Walleij
  Cc: Alexander Stein, linux-gpio

Apparently each GPIO pad's register are 16 bytes, so multiply the pad_map
by that. The same is done in byt_gpio_reg the only other place where
pad_map is used.

Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
---
 drivers/pinctrl/intel/pinctrl-baytrail.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pinctrl/intel/pinctrl-baytrail.c b/drivers/pinctrl/intel/pinctrl-baytrail.c
index 3730063..6cce314 100644
--- a/drivers/pinctrl/intel/pinctrl-baytrail.c
+++ b/drivers/pinctrl/intel/pinctrl-baytrail.c
@@ -1449,7 +1449,7 @@ static void byt_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip)
 			   val & BYT_INPUT_EN ? "  " : "in",
 			   val & BYT_OUTPUT_EN ? "   " : "out",
 			   val & BYT_LEVEL ? "hi" : "lo",
-			   comm->pad_map[i], comm->pad_map[i] * 32,
+			   comm->pad_map[i], comm->pad_map[i] * 16,
 			   conf0 & 0x7,
 			   conf0 & BYT_TRIG_NEG ? " fall" : "     ",
 			   conf0 & BYT_TRIG_POS ? " rise" : "     ",
-- 
2.10.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/1] pinctrl: baytrail: Fix debugfs offset output
  2017-01-26 13:17 [PATCH 1/1] pinctrl: baytrail: Fix debugfs offset output Alexander Stein
@ 2017-01-26 15:44 ` Linus Walleij
  0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2017-01-26 15:44 UTC (permalink / raw)
  To: Alexander Stein; +Cc: Mika Westerberg, Heikki Krogerus, linux-gpio

On Thu, Jan 26, 2017 at 2:17 PM, Alexander Stein
<alexander.stein@systec-electronic.com> wrote:

> Apparently each GPIO pad's register are 16 bytes, so multiply the pad_map
> by that. The same is done in byt_gpio_reg the only other place where
> pad_map is used.
>
> Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>

Patch applied.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-01-26 15:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-26 13:17 [PATCH 1/1] pinctrl: baytrail: Fix debugfs offset output Alexander Stein
2017-01-26 15:44 ` Linus Walleij

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.