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, 13 May 2019 23:07:53 +0000 (00:07 +0100)
Signed-off-by: Noralf Tronnes <notro@tronnes.org>
drivers/pinctrl/bcm/pinctrl-bcm2835.c

index 08925d2..475e0fb 100644 (file)
@@ -352,7 +352,7 @@ static const struct gpio_chip bcm2835_gpio_chip = {
        .get_direction = bcm2835_gpio_get_direction,
        .get = bcm2835_gpio_get,
        .set = bcm2835_gpio_set,
-       .base = -1,
+       .base = 0,
        .ngpio = BCM2835_NUM_GPIOS,
        .can_sleep = false,
 };