Revert "pinctrl-bcm2835: Set base to 0 give expected gpio numbering"
authorPhil Elwell <phil@raspberrypi.com>
Fri, 6 Oct 2023 16:35:43 +0000 (17:35 +0100)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:35:05 +0000 (11:35 +0000)
This reverts commit 2afa8798ada2b03fd6ae3ef5c5dfcb39a5877ad8.

drivers/pinctrl/bcm/pinctrl-bcm2835.c

index ac26569..8b178b8 100644 (file)
@@ -391,7 +391,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,
        .add_pin_ranges = bcm2835_add_pin_ranges_fallback,
@@ -408,7 +408,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,
        .add_pin_ranges = bcm2835_add_pin_ranges_fallback,