From: Ben Dooks <ben@simtec.co.uk>
To: linux-kernel@vger.kernel.org, sameo@linux.intel.com,
dbrownell@users.sourceforge.net
Cc: Simtec Liunx Team <linux@simtec.co.uk>
Subject: tps65010: Allow the board to choose any GPIO base.
Date: Mon, 02 Nov 2009 16:52:20 +0000 [thread overview]
Message-ID: <20091102165220.310450538@fluff.org.uk> (raw)
[-- Attachment #1: tps65010-allow-any-gpio.patch --]
[-- Type: text/plain, Size: 1028 bytes --]
If the board does not care where the TPS turns up, then specifiying the
value -1 to get gpiolib to dynamically allocate the base for the chip
is valid.
Change the test to look for != 0, so that any boards specifying zero
will not end up with gpio that they didn't want.
Signed-off-by: Ben Dooks <ben@simtec.co.uk>
Signed-off-by: Simtec Liunx Team <linux@simtec.co.uk>
---
drivers/mfd/tps65010.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: b/drivers/mfd/tps65010.c
===================================================================
--- a/drivers/mfd/tps65010.c 2009-10-21 19:09:28.000000000 +0100
+++ b/drivers/mfd/tps65010.c 2009-10-21 19:09:39.000000000 +0100
@@ -637,7 +637,7 @@ static int tps65010_probe(struct i2c_cli
tps, DEBUG_FOPS);
/* optionally register GPIOs */
- if (board && board->base > 0) {
+ if (board && board->base != 0) {
tps->outmask = board->outmask;
tps->chip.label = client->name;
--
Ben (ben@fluff.org, http://www.fluff.org/)
'a smiley only costs 4 bytes'
next reply other threads:[~2009-11-02 16:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-02 16:52 Ben Dooks [this message]
2009-11-04 11:43 ` tps65010: Allow the board to choose any GPIO base Samuel Ortiz
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=20091102165220.310450538@fluff.org.uk \
--to=ben@simtec.co.uk \
--cc=dbrownell@users.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@simtec.co.uk \
--cc=sameo@linux.intel.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.