From 8812c9e533b66ccd23755361122c611dc2bf96c0 Mon Sep 17 00:00:00 2001 From: florian Date: Fri, 27 Apr 2012 16:44:48 +0000 Subject: [brcm63xx] switch to gpio-keys-polled git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31491 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../brcm63xx/patches-3.3/300-reset_buttons.patch | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'target/linux/brcm63xx/patches-3.3/300-reset_buttons.patch') diff --git a/target/linux/brcm63xx/patches-3.3/300-reset_buttons.patch b/target/linux/brcm63xx/patches-3.3/300-reset_buttons.patch index ef57ff8bf..9420b8bc0 100644 --- a/target/linux/brcm63xx/patches-3.3/300-reset_buttons.patch +++ b/target/linux/brcm63xx/patches-3.3/300-reset_buttons.patch @@ -4,7 +4,7 @@ #include #include #include -+#include ++#include +#include #include #include @@ -20,7 +20,7 @@ + .active_low = 1, + .type = EV_KEY, + .code = KEY_RESTART, -+ .threshold = 3, ++ .debounce_interval = 60, + }, + }, }; @@ -37,7 +37,7 @@ + .active_low = 1, + .type = EV_KEY, + .code = KEY_RESTART, -+ .threshold = 3, ++ .debounce_interval = 60, + }, + }, }; @@ -47,14 +47,14 @@ .dev.platform_data = &bcm63xx_led_data, }; -+static struct gpio_buttons_platform_data bcm63xx_gpio_buttons_data = { ++static struct gpio_keys_platform_data bcm63xx_gpio_keys_data = { + .poll_interval = 20, +}; + -+static struct platform_device bcm63xx_gpio_buttons_device = { -+ .name = "gpio-buttons", ++static struct platform_device bcm63xx_gpio_keys_device = { ++ .name = "gpio-keys-polled", + .id = 0, -+ .dev.platform_data = &bcm63xx_gpio_buttons_data, ++ .dev.platform_data = &bcm63xx_gpio_keys_data, +}; + /* @@ -76,10 +76,10 @@ + button_count++; + + if (button_count) { -+ bcm63xx_gpio_buttons_data.nbuttons = button_count; -+ bcm63xx_gpio_buttons_data.buttons = board.buttons; ++ bcm63xx_gpio_keys_data.nbuttons = button_count; ++ bcm63xx_gpio_keys_data.buttons = board.buttons; + -+ platform_device_register(&bcm63xx_gpio_buttons_device); ++ platform_device_register(&bcm63xx_gpio_keys_device); + } + return 0; @@ -90,7 +90,7 @@ #include #include -+#include ++#include #include #include #include @@ -100,7 +100,7 @@ struct gpio_led leds[5]; + + /* Buttons */ -+ struct gpio_button buttons[4]; ++ struct gpio_keys_button buttons[4]; }; #endif /* ! BOARD_BCM963XX_H_ */ -- cgit v1.2.3