]> err.no Git - linux-2.6/blobdiff - include/asm-generic/gpio.h
ide: pass 'hwif *' instead of 'drive *' to ->OUTBSYNC method
[linux-2.6] / include / asm-generic / gpio.h
index 464c5b334dc27695ae8511991d871a6affce6e96..6be061d09da9d06fc2dabdb520148c028194621b 100644 (file)
@@ -1,8 +1,12 @@
 #ifndef _ASM_GENERIC_GPIO_H
 #define _ASM_GENERIC_GPIO_H
 
+#include <linux/types.h>
+
 #ifdef CONFIG_HAVE_GPIO_LIB
 
+#include <linux/compiler.h>
+
 /* Platforms may implement their GPIO interface with library code,
  * at a small performance cost for non-inlined operations and some
  * extra memory (for code and for per-GPIO table entries).
@@ -74,6 +78,7 @@ struct gpio_chip {
 
 extern const char *gpiochip_is_requested(struct gpio_chip *chip,
                        unsigned offset);
+extern int __must_check gpiochip_reserve(int start, int ngpio);
 
 /* add/remove chips */
 extern int gpiochip_add(struct gpio_chip *chip);