From: tip-bot for Alek Du <alek.du@intel.com>
To: linux-tip-commits@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, alan@linux.intel.com,
hpa@zytor.com, mingo@redhat.com, alek.du@intel.com,
jacob.jun.pan@intel.com, tglx@linutronix.de, mingo@elte.hu
Subject: [tip:x86/urgent] x86/gpio: Implement x86 gpio_to_irq convert function
Date: Tue, 11 Jan 2011 12:28:34 GMT [thread overview]
Message-ID: <tip-718c45bd1aa80c4e23a0ee204c973e3014e94708@git.kernel.org> (raw)
In-Reply-To: <20110111105439.24448.69863.stgit@bob.linux.org.uk>
Commit-ID: 718c45bd1aa80c4e23a0ee204c973e3014e94708
Gitweb: http://git.kernel.org/tip/718c45bd1aa80c4e23a0ee204c973e3014e94708
Author: Alek Du <alek.du@intel.com>
AuthorDate: Tue, 11 Jan 2011 10:55:32 +0000
Committer: Ingo Molnar <mingo@elte.hu>
CommitDate: Tue, 11 Jan 2011 12:46:15 +0100
x86/gpio: Implement x86 gpio_to_irq convert function
We need this for x86 MID platforms where GPIO interrupts are
used. No special magic is needed so the default 1:1 behaviour
will do nicely.
Signed-off-by: Alek Du <alek.du@intel.com>
Signed-off-by: Jacob Pan <jacob.jun.pan@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
LKML-Reference: <20110111105439.24448.69863.stgit@bob.linux.org.uk>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
arch/x86/include/asm/gpio.h | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/arch/x86/include/asm/gpio.h b/arch/x86/include/asm/gpio.h
index 49dbfdf..91d915a 100644
--- a/arch/x86/include/asm/gpio.h
+++ b/arch/x86/include/asm/gpio.h
@@ -38,12 +38,9 @@ static inline int gpio_cansleep(unsigned int gpio)
return __gpio_cansleep(gpio);
}
-/*
- * Not implemented, yet.
- */
static inline int gpio_to_irq(unsigned int gpio)
{
- return -ENOSYS;
+ return __gpio_to_irq(gpio);
}
static inline int irq_to_gpio(unsigned int irq)
prev parent reply other threads:[~2011-01-11 12:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-11 10:55 [PATCH 1/2] gpio: implement x86 gpio_to_irq convert function Alan Cox
2011-01-11 10:55 ` [PATCH 2/2] Fix Moorestown VRTC fixmap placement Alan Cox
2011-01-11 12:28 ` [tip:x86/urgent] x86: " tip-bot for Arjan van de Ven
2011-01-11 12:28 ` tip-bot for Alek Du [this message]
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=tip-718c45bd1aa80c4e23a0ee204c973e3014e94708@git.kernel.org \
--to=alek.du@intel.com \
--cc=alan@linux.intel.com \
--cc=hpa@zytor.com \
--cc=jacob.jun.pan@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
/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.