pinctrl-bcm2835: Set base to 0 give expected gpio numbering
authornotro <notro@tronnes.org>
Thu, 10 Jul 2014 11:59:47 +0000 (13:59 +0200)
committerpopcornmix <popcornmix@gmail.com>
Mon, 20 Feb 2017 12:17:37 +0000 (12:17 +0000)
Signed-off-by: Noralf Tronnes <notro@tronnes.org>
drivers/pinctrl/bcm/pinctrl-bcm2835.c

index fa77165fab2c1348163979da507df17e7168c49b..d11e2e4ea189466e686d762cb6c6fef9111ecf8e 100644 (file)
@@ -386,7 +386,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,
 };