[ar71xx] add gpio-buttons devices
[openwrt/svn-archive/archive.git] / target / linux / ar71xx / files / include / asm-mips / mach-ar71xx / platform.h
index 996924a0aa3ab3e5448c2e7eb5904afe3b8cc0ef..32ca2965ebcb28f8e378be12ca56a1abfcb167c7 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/phy.h>
 #include <linux/spi/spi.h>
 #include <linux/leds.h>
+#include <linux/gpio_buttons.h>
 
 struct ag71xx_platform_data {
        u32             reset_bit;
@@ -54,4 +55,9 @@ extern void ar71xx_add_device_leds_gpio(int id,
                                   unsigned num_leds,
                                   struct gpio_led *leds) __init;
 
+extern void ar71xx_add_device_gpio_buttons(int id,
+                                  unsigned poll_interval,
+                                  unsigned nbuttons,
+                                  struct gpio_button *buttons) __init;
+
 #endif /* __ASM_MACH_AR71XX_PLATFORM_H */