X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=target%2Flinux%2Far71xx%2Ffiles%2Farch%2Fmips%2Far71xx%2Fmach-ap83.c;h=93072a36015c1fef51eb146ebefdfe86b84d8084;hb=c0993046d6cf7cede0057352374f10d21738d7ac;hp=a9bb2bfe1d24e4843b767bb906cccfd3d2c58c2f;hpb=3687b4fb2693e54e6d476d4fe0a736e75eeee2c7;p=librecmc%2Flibrecmc.git diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap83.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap83.c index a9bb2bfe1d..93072a3601 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap83.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap83.c @@ -11,7 +11,6 @@ #include #include -#include #include #include #include @@ -24,6 +23,7 @@ #include "devices.h" #include "dev-ar913x-wmac.h" +#include "dev-gpio-buttons.h" #include "dev-leds-gpio.h" #define AP83_GPIO_LED_WLAN 6 @@ -37,6 +37,8 @@ #define AP83_050_GPIO_VSC7385_MOSI 16 #define AP83_050_GPIO_VSC7385_SCK 17 +#define AP83_BUTTONS_POLL_INTERVAL 20 + #ifdef CONFIG_MTD_PARTITIONS static struct mtd_partition ap83_flash_partitions[] = { { @@ -214,7 +216,8 @@ static void __init ap83_generic_setup(void) ar71xx_add_device_leds_gpio(-1, ARRAY_SIZE(ap83_leds_gpio), ap83_leds_gpio); - ar71xx_add_device_gpio_buttons(-1, 20, ARRAY_SIZE(ap83_gpio_buttons), + ar71xx_add_device_gpio_buttons(-1, AP83_BUTTONS_POLL_INTERVAL, + ARRAY_SIZE(ap83_gpio_buttons), ap83_gpio_buttons); ar71xx_add_device_usb();