7b701bfd02dace8ec3b4875facfde91df0b3bb7f
[openwrt/openwrt.git] / target / linux / brcm2708 / patches-4.4 / 0009-pinctrl-bcm2835-Set-base-to-0-give-expected-gpio-num.patch
1 From e1239426241dc0af5bf9c7eb25b3b5b91f8072f2 Mon Sep 17 00:00:00 2001
2 From: notro <notro@tronnes.org>
3 Date: Thu, 10 Jul 2014 13:59:47 +0200
4 Subject: [PATCH 009/156] pinctrl-bcm2835: Set base to 0 give expected gpio
5 numbering
6
7 Signed-off-by: Noralf Tronnes <notro@tronnes.org>
8 ---
9 drivers/pinctrl/bcm/pinctrl-bcm2835.c | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12 --- a/drivers/pinctrl/bcm/pinctrl-bcm2835.c
13 +++ b/drivers/pinctrl/bcm/pinctrl-bcm2835.c
14 @@ -373,7 +373,7 @@ static struct gpio_chip bcm2835_gpio_chi
15 .get = bcm2835_gpio_get,
16 .set = bcm2835_gpio_set,
17 .to_irq = bcm2835_gpio_to_irq,
18 - .base = -1,
19 + .base = 0,
20 .ngpio = BCM2835_NUM_GPIOS,
21 .can_sleep = false,
22 };