| To: | Linux-MIPS <linux-mips@linux-mips.org> |
|---|---|
| Subject: | [PATCH RESEND] MIPS: Alchemy: update inlinable GPIO API |
| From: | Manuel Lauss <manuel.lauss@googlemail.com> |
| Date: | Thu, 10 Feb 2011 15:17:07 +0100 |
| Cc: | Manuel Lauss <manuel.lauss@googlemail.com> |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer; bh=oUWwFa9PxxuKFfbAjykpAoUgKh1tHMd5UQLf+pvZHSo=; b=L9w1B+DJ+1aQaBxjjiPnBor7AskkNGffv4FtSUDMklYdzUFR+Jh8pGLK0asXgn0r8Z H2sCn46usQlfA2rW1e+29hHlq05dpLHkoP9AaYTDHembK0rzQwUQL1QezK80b6O8jyU6 3WckQ5UDviWuc9xkOwOD+MbzF33hRO5enml1M= |
| Domainkey-signature: | a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=NZxO18A5iALuu4CAgpwTvoJ2KbTSZ/+BOYY3kQJrhLwfTnIx6Sd+NegPi0Sr6MEkAq NrdzPKz1oqxCqW/pbFaxmtpVjJFiNsC5rHMJYmioTUX9t8mx++4Dkt0PK5xoVDPRKewr vDAj3pU+qOM7aXbvG4kUrmjt64b3p3E6Gap4w= |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
The GPIO API has grown a few new functions, add the missing ones
to the other inlinables.
Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com>
---
arch/mips/include/asm/mach-au1x00/gpio-au1000.h | 35 +++++++++++++++++++++++
1 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/arch/mips/include/asm/mach-au1x00/gpio-au1000.h
b/arch/mips/include/asm/mach-au1x00/gpio-au1000.h
index 62d2f13..f26bfe7 100644
--- a/arch/mips/include/asm/mach-au1x00/gpio-au1000.h
+++ b/arch/mips/include/asm/mach-au1x00/gpio-au1000.h
@@ -556,6 +556,16 @@ static inline void gpio_set_value(int gpio, int v)
alchemy_gpio_set_value(gpio, v);
}
+static inline int gpio_get_value_cansleep(unsigned gpio)
+{
+ return gpio_get_value(gpio);
+}
+
+static inline void gpio_set_value_cansleep(unsigned gpio, int value)
+{
+ gpio_set_value(gpio, value);
+}
+
static inline int gpio_is_valid(int gpio)
{
return alchemy_gpio_is_valid(gpio);
@@ -585,6 +595,31 @@ static inline void gpio_free(unsigned gpio)
{
}
+static inline int gpio_set_debounce(unsigned gpio, unsigned debounce)
+{
+ return -ENOSYS;
+}
+
+static inline void gpio_unexport(unsigned gpio)
+{
+}
+
+static inline int gpio_export(unsigned gpio, bool direction_may_change)
+{
+ return -ENOSYS;
+}
+
+static inline int gpio_sysfs_set_active_low(unsigned gpio, int value)
+{
+ return -ENOSYS;
+}
+
+static inline int gpio_export_link(struct device *dev, const char *name,
+ unsigned gpio)
+{
+ return -ENOSYS;
+}
+
#endif /* !CONFIG_ALCHEMY_GPIO_INDIRECT */
--
1.7.4
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 2/2] Alchemy: Convert to new irq methods., Manuel Lauss |
|---|---|
| Next by Date: | [PATCH] MIPS: DB1200: Set Config_OD for improved stability., Manuel Lauss |
| Previous by Thread: | [PATCH 0/2] Alchemy: use new irq methods, Manuel Lauss |
| Next by Thread: | [PATCH] MIPS: DB1200: Set Config_OD for improved stability., Manuel Lauss |
| Indexes: | [Date] [Thread] [Top] [All Lists] |