Messages in this thread Patch in this message | | | From | Matthias Klein <> | Subject | [PATCH v2] pinctrl: bcm2835: Start GPIO numeration at zero | Date | Mon, 27 Oct 2014 23:09:59 +0100 |
| |
Numerate the GPIOs from 0..53 instead of 202..255.
Signed-off-by: Matthias Klein <matthias.klein@linux.com> --- Changes in v2: - fix wrong gpio range 0..54 in comment --- drivers/pinctrl/pinctrl-bcm2835.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pinctrl/pinctrl-bcm2835.c b/drivers/pinctrl/pinctrl-bcm2835.c index 5bcfd7a..c183d0f 100644 --- a/drivers/pinctrl/pinctrl-bcm2835.c +++ b/drivers/pinctrl/pinctrl-bcm2835.c @@ -382,7 +382,7 @@ static struct gpio_chip bcm2835_gpio_chip = { .get = bcm2835_gpio_get, .set = bcm2835_gpio_set, .to_irq = bcm2835_gpio_to_irq, - .base = -1, + .base = 0, .ngpio = BCM2835_NUM_GPIOS, .can_sleep = false, }; -- 2.1.2
| |