public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] pinctrl: bcm2835: Start GPIO numeration at zero
@ 2014-10-27 22:09 Matthias Klein
  2014-10-27 22:44 ` Stephen Warren
  0 siblings, 1 reply; 8+ messages in thread
From: Matthias Klein @ 2014-10-27 22:09 UTC (permalink / raw)
  To: linux-rpi-kernel, swarren, linus.walleij; +Cc: linux-kernel

Numerate the GPIOs from 0..53 instead of 202..255.

Signed-off-by: Matthias Klein <matthias.klein@linux.com>
---
Changes in v2:
 - fix wrong gpio range 0..54 in comment
---
 drivers/pinctrl/pinctrl-bcm2835.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pinctrl/pinctrl-bcm2835.c b/drivers/pinctrl/pinctrl-bcm2835.c
index 5bcfd7a..c183d0f 100644
--- a/drivers/pinctrl/pinctrl-bcm2835.c
+++ b/drivers/pinctrl/pinctrl-bcm2835.c
@@ -382,7 +382,7 @@ static struct gpio_chip bcm2835_gpio_chip = {
 	.get = bcm2835_gpio_get,
 	.set = bcm2835_gpio_set,
 	.to_irq = bcm2835_gpio_to_irq,
-	.base = -1,
+	.base = 0,
 	.ngpio = BCM2835_NUM_GPIOS,
 	.can_sleep = false,
 };
-- 
2.1.2


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

end of thread, other threads:[~2014-11-01  6:13 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-27 22:09 [PATCH v2] pinctrl: bcm2835: Start GPIO numeration at zero Matthias Klein
2014-10-27 22:44 ` Stephen Warren
2014-10-27 23:05   ` Matthias Klein
2014-10-28  0:00     ` Stephen Warren
2014-10-28  7:10       ` Matthias Klein
     [not found]       ` <544F3FDA.60407@linux.com>
2014-10-29  1:15         ` Stephen Warren
2014-10-31  9:49     ` Linus Walleij
2014-11-01  6:13       ` Alexandre Courbot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox