From: Matthias Klein <matthias.klein@linux.com>
To: linux-rpi-kernel@lists.infradead.org, swarren@wwwdotorg.org,
linus.walleij@linaro.org
Cc: linux-kernel@vger.kernel.org
Subject: [PATCH v2] pinctrl: bcm2835: Start GPIO numeration at zero
Date: Mon, 27 Oct 2014 23:09:59 +0100 [thread overview]
Message-ID: <1414447799-1284-1-git-send-email-matthias.klein@linux.com> (raw)
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
next reply other threads:[~2014-10-27 22:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-27 22:09 Matthias Klein [this message]
2014-10-27 22:44 ` Stephen Warren
2014-10-27 23:05 ` Matthias Klein
2014-10-28 0:00 ` Stephen Warren
2014-10-28 7:10 ` Matthias Klein
[not found] ` <544F3FDA.60407@linux.com>
2014-10-29 1:15 ` Stephen Warren
2014-10-31 9:49 ` Linus Walleij
2014-11-01 6:13 ` Alexandre Courbot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1414447799-1284-1-git-send-email-matthias.klein@linux.com \
--to=matthias.klein@linux.com \
--cc=linus.walleij@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rpi-kernel@lists.infradead.org \
--cc=swarren@wwwdotorg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome