projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
772b5fa
)
Revert "pinctrl-bcm2835: Set base to 0 give expected gpio numbering"
author
Phil Elwell
<phil@raspberrypi.com>
Fri, 6 Oct 2023 16:35:43 +0000
(17:35 +0100)
committer
Dom 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
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/bcm/pinctrl-bcm2835.c
b/drivers/pinctrl/bcm/pinctrl-bcm2835.c
index ac26569d91b741fec1820c9707b9ba21034df33e..8b178b8d72420b8bfc5bb6957e57dd4ea10797f6 100644
(file)
--- a/
drivers/pinctrl/bcm/pinctrl-bcm2835.c
+++ b/
drivers/pinctrl/bcm/pinctrl-bcm2835.c
@@
-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,