From ebdecffa179ef3d51468b24fa1f4c319731a4bea Mon Sep 17 00:00:00 2001 From: Dom Cobley Date: Fri, 17 Jun 2022 18:54:51 +0100 Subject: [PATCH] Revert "pinctrl-bcm2835: Set base to 0 give expected gpio numbering" This reverts commit 9d479ba48d1aa61814910a6db672595dd1507489. --- drivers/pinctrl/bcm/pinctrl-bcm2835.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/bcm/pinctrl-bcm2835.c b/drivers/pinctrl/bcm/pinctrl-bcm2835.c index 358fc1c..09ae46e 100644 --- a/drivers/pinctrl/bcm/pinctrl-bcm2835.c +++ b/drivers/pinctrl/bcm/pinctrl-bcm2835.c @@ -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, }; -- 2.7.4