[PATCH v2] pinctrl: bcm2835: Start GPIO numeration at zero

Matthias Klein matthias.klein at linux.com
Mon Oct 27 15:09:59 PDT 2014


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

Signed-off-by: Matthias Klein <matthias.klein at 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




More information about the linux-rpi-kernel mailing list