diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-06-30 18:12:56 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-07-25 09:27:27 +0200 |
commit | 47548c90b1e943bedee2bfde1060405d20a26624 (patch) | |
tree | 0fe11f73a581ce72d4fc5da11c825bffb05f82a2 /include | |
parent | d5a90dbcbca87c627c350f26ce680178d90f5943 (diff) | |
download | barebox-47548c90b1e943bedee2bfde1060405d20a26624.tar.gz barebox-47548c90b1e943bedee2bfde1060405d20a26624.tar.xz |
gpio: add static inlines for gpio_request/gpio_free
Some drivers use gpio_request/gpio_free. Currently no architecture
has code behind these functions. Provide static inline functions
for these and remvoe the at91 specific inline functions.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/gpio.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/gpio.h b/include/gpio.h index 9fc03a4133..b7d840211a 100644 --- a/include/gpio.h +++ b/include/gpio.h @@ -1 +1,14 @@ +#ifndef __GPIO_H +#define __GPIO_H + #include <asm/gpio.h> + +static inline int gpio_request(unsigned gpio, const char *label) +{ + return 0; +} + +static inline void gpio_free(unsigned gpio) +{ +} +#endif /* __GPIO_H */ |