linux-mips
[Top] [All Lists]

[PATCH] MIPS: Alchemy: update inlinable GPIO API

To: Linux-MIPS <linux-mips@linux-mips.org>
Subject: [PATCH] MIPS: Alchemy: update inlinable GPIO API
From: Manuel Lauss <manuel.lauss@googlemail.com>
Date: Thu, 26 Aug 2010 16:00:50 +0200
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:received:received:from:to:cc:subject:date :message-id:x-mailer; bh=W1cy3JixoOfa3CoG6f3dyj04WVClLI0/gEZFNE3JsJ8=; b=LyKlkK3gWP+mQjQCQWrHzSCtW8a13cUkUgmd5L65mcOl8iXA7OjlARDISnTmWFJhir vWTBqbH94d7Fo7MDoQJL1ZJ/Fyo0DvKfu5IEmSo3MevCWtZI7q6ahahHqGYmhQ1NTNYi miTfAhrY1/V92ljvaFMWylGWDlLozLVXk0kSE=
Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=xgoVd2iMtg1iSsIEUcsh3eZ755+011P3swtQwxRqniK67jLA3fkx7pPicWLFHHpiln PuNjRwE9R+QpxE/wU0/CNqCNkp86lh36ec2gmz3AXnWDXBfXovtW8lOeKnZm9+cPugvE Ja50KpcsZpB1Dlc1liDJlo0b5ywkaSfj5UuEc=
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 (CONFIG_GPIOLIB=n)

Signed-off-by: Manuel Lauss <manuel.lauss@googlemail.com>
---
gpio_keys is one user of gpio_set_debounce() for example.

 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.2


<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] MIPS: Alchemy: update inlinable GPIO API, Manuel Lauss <=