All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RESEND] MIPS: Alchemy: update inlinable GPIO API
@ 2011-02-10 14:17 Manuel Lauss
  2011-02-10 14:17 ` [PATCH] MIPS: DB1200: Set Config_OD for improved stability Manuel Lauss
  2011-02-10 14:17 ` [PATCH] Alchemy: irq: replace au_readl/writel accessors Manuel Lauss
  0 siblings, 2 replies; 5+ messages in thread
From: Manuel Lauss @ 2011-02-10 14:17 UTC (permalink / raw)
  To: Linux-MIPS; +Cc: Manuel Lauss

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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-02-10 18:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-10 14:17 [PATCH RESEND] MIPS: Alchemy: update inlinable GPIO API Manuel Lauss
2011-02-10 14:17 ` [PATCH] MIPS: DB1200: Set Config_OD for improved stability Manuel Lauss
2011-02-10 18:14   ` Sergei Shtylyov
2011-02-10 18:25     ` Sergei Shtylyov
2011-02-10 14:17 ` [PATCH] Alchemy: irq: replace au_readl/writel accessors Manuel Lauss

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.