Revert "pinctrl-bcm2835: Set base to 0 give expected gpio numbering"
authorDom Cobley <popcornmix@gmail.com>
Fri, 17 Jun 2022 17:54:51 +0000 (18:54 +0100)
committerDom Cobley <popcornmix@gmail.com>
Fri, 17 Jun 2022 17:54:51 +0000 (18:54 +0100)
This reverts commit 9d479ba48d1aa61814910a6db672595dd1507489.

drivers/pinctrl/bcm/pinctrl-bcm2835.c

index 358fc1c..09ae46e 100644 (file)
@@ -362,7 +362,7 @@ static const struct gpio_chip bcm2835_gpio_chip = {
        .get = bcm2835_gpio_get,
        .set = bcm2835_gpio_set,
        .set_config = gpiochip_generic_config,
-       .base = 0,
+       .base = -1,
        .ngpio = BCM2835_NUM_GPIOS,
        .can_sleep = false,
 };
@@ -378,7 +378,7 @@ static const struct gpio_chip bcm2711_gpio_chip = {
        .get = bcm2835_gpio_get,
        .set = bcm2835_gpio_set,
        .set_config = gpiochip_generic_config,
-       .base = 0,
+       .base = -1,
        .ngpio = BCM2711_NUM_GPIOS,
        .can_sleep = false,
 };