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>
Wed, 1 Jul 2020 15:32:35 +0000 (16:32 +0100)
Signed-off-by: Noralf Tronnes <notro@tronnes.org>
drivers/pinctrl/bcm/pinctrl-bcm2835.c

index 0de1a3a..76fad11 100644 (file)
@@ -350,7 +350,7 @@ static const struct gpio_chip bcm2835_gpio_chip = {
        .get = bcm2835_gpio_get,
        .set = bcm2835_gpio_set,
        .set_config = gpiochip_generic_config,
-       .base = -1,
+       .base = 0,
        .ngpio = BCM2835_NUM_GPIOS,
        .can_sleep = false,
 };