aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Green <andy@openmoko.com>2008-11-19 17:10:00 +0000
committerAndy Green <andy@openmoko.com>2008-11-19 17:10:00 +0000
commit4e3487310bcb772ffd5974112dd729dcf2227fe8 (patch)
tree550f7cf1877fa5dae446724ae75343fc57c2629a
parente9631885517de5ce5820295e39d95a23ee555de9 (diff)
tracking-2.6.27-gpio-redef-clean.patch
Signed-off-by: Andy Green <andy@openmoko.com>
-rw-r--r--include/asm-arm/arch-s3c2410/gpio.h27
1 files changed, 4 insertions, 23 deletions
diff --git a/include/asm-arm/arch-s3c2410/gpio.h b/include/asm-arm/arch-s3c2410/gpio.h
index 45228c8a92c..9963ca3a571 100644
--- a/include/asm-arm/arch-s3c2410/gpio.h
+++ b/include/asm-arm/arch-s3c2410/gpio.h
@@ -22,29 +22,10 @@
#include <asm/hardware.h>
#include <asm/arch/regs-gpio.h>
-static inline int gpio_request(unsigned gpio, const char *label)
-{
- return 0;
-}
-
-static inline void gpio_free(unsigned gpio)
-{
- return;
-}
-
-static inline int gpio_direction_input(unsigned gpio)
-{
- s3c2410_gpio_cfgpin(gpio, S3C2410_GPIO_INPUT);
- return 0;
-}
-
-static inline int gpio_direction_output(unsigned gpio, int value)
-{
- s3c2410_gpio_cfgpin(gpio, S3C2410_GPIO_OUTPUT);
- /* REVISIT can we write the value first, to avoid glitching? */
- s3c2410_gpio_setpin(gpio, value);
- return 0;
-}
+int gpio_request(unsigned gpio, const char *label);
+void gpio_free(unsigned gpio);
+int gpio_direction_input(unsigned gpio);
+int gpio_direction_output(unsigned gpio, int value);
#define gpio_get_value(gpio) s3c2410_gpio_getpin(gpio)
#define gpio_set_value(gpio,value) s3c2410_gpio_setpin(gpio, value)