ar71xx: reduce button threshold values
authorGabor Juhos <juhosg@openwrt.org>
Wed, 13 Jan 2010 10:18:30 +0000 (10:18 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Wed, 13 Jan 2010 10:18:30 +0000 (10:18 +0000)
SVN-Revision: 19116

22 files changed:
target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap81.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-ap83.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-aw-nr580.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-dir-600-a1.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-dir-615-c1.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-dir-825-b1.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-mzk-w04nu.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-mzk-w300nh.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-pb42.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-pb44.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb-4xx.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-tew-632brp.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr1043nd.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr741nd.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr841n.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-tl-wr941nd.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-ubnt.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-wndr3700.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-wnr2000.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-wp543.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-wrt160nl.c
target/linux/ar71xx/files/arch/mips/ar71xx/mach-wrt400n.c

index daf7dcf9f57b44cbc02151645c909bb55d07e302..6fa950f70d605c1694704735e893a4c82d92968b 100644 (file)
@@ -92,14 +92,14 @@ static struct gpio_button ap81_gpio_buttons[] __initdata = {
                .desc           = "sw1",
                .type           = EV_KEY,
                .code           = BTN_0,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = AP81_GPIO_BTN_SW1,
                .active_low     = 1,
        } , {
                .desc           = "sw4",
                .type           = EV_KEY,
                .code           = BTN_1,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = AP81_GPIO_BTN_SW4,
                .active_low     = 1,
        }
index cd4746ba7004bc66175e0a3143b73753fc086d40..72c00163166e733b1ed7c844bb96f92248ffefc9 100644 (file)
@@ -120,14 +120,14 @@ static struct gpio_button ap83_gpio_buttons[] __initdata = {
                .desc           = "soft_reset",
                .type           = EV_KEY,
                .code           = BTN_0,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = AP83_GPIO_BTN_RESET,
                .active_low     = 1,
        } , {
                .desc           = "jumpstart",
                .type           = EV_KEY,
                .code           = BTN_1,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = AP83_GPIO_BTN_JUMPSTART,
                .active_low     = 1,
        }
index 5cee4c6ea8ecc76fc9963c27c788a73b85608483..a6f1daf4619f1a974fd3f3a0bf3017191461992a 100644 (file)
@@ -62,14 +62,14 @@ static struct gpio_button aw_nr580_gpio_buttons[] __initdata = {
                .desc           = "reset",
                .type           = EV_KEY,
                .code           = BTN_0,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = AW_NR580_GPIO_BTN_RESET,
                .active_low     = 1,
        }, {
                .desc           = "wps",
                .type           = EV_KEY,
                .code           = BTN_1,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = AW_NR580_GPIO_BTN_WPS,
                .active_low     = 1,
        }
index d76e9b649b405f096e04035adb78881c11005077..68f18226809534a82ee03e425a059c36f3f83723 100644 (file)
@@ -92,14 +92,14 @@ static struct gpio_button dir_600_a1_gpio_buttons[] __initdata = {
                .desc           = "reset",
                .type           = EV_KEY,
                .code           = BTN_0,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = DIR_600_A1_GPIO_BTN_RESET,
                .active_low     = 1,
        }, {
                .desc           = "wps",
                .type           = EV_KEY,
                .code           = BTN_1,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = DIR_600_A1_GPIO_BTN_WPS,
                .active_low     = 1,
        }
index d6f1fa75dae860396c722a79f0bd9262999ac2fc..5eb594c31ab913c9a881e6bd7c757e7917a7658c 100644 (file)
@@ -117,13 +117,13 @@ static struct gpio_button dir_615c1_gpio_buttons[] __initdata = {
                .desc           = "reset",
                .type           = EV_KEY,
                .code           = BTN_0,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = DIR_615C1_GPIO_BTN_RESET,
        }, {
                .desc           = "wps",
                .type           = EV_KEY,
                .code           = BTN_1,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = DIR_615C1_GPIO_BTN_WPS,
        }
 };
index 80ab330844d72ef5348047002ead0bd9f93e57d4..e80a992b415f590dc0314a272e2888521cb3d2a7 100644 (file)
@@ -117,14 +117,14 @@ static struct gpio_button dir825b1_gpio_buttons[] __initdata = {
                .desc           = "reset",
                .type           = EV_KEY,
                .code           = BTN_0,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = DIR825B1_GPIO_BTN_RESET,
                .active_low     = 1,
        } , {
                .desc           = "powersave",
                .type           = EV_KEY,
                .code           = BTN_1,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = DIR825B1_GPIO_BTN_POWERSAVE,
                .active_low     = 1,
        }
index 6af5dd4cdf9c12aa839173c277b22a90a082d14b..1e5a9338155d199cb8ac58650aaa097db0318b30 100644 (file)
@@ -106,21 +106,21 @@ static struct gpio_button mzk_w04nu_gpio_buttons[] __initdata = {
                .desc           = "reset",
                .type           = EV_KEY,
                .code           = BTN_0,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = MZK_W04NU_GPIO_BTN_RESET,
                .active_low     = 1,
        }, {
                .desc           = "wps",
                .type           = EV_KEY,
                .code           = BTN_1,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = MZK_W04NU_GPIO_BTN_WPS,
                .active_low     = 1,
        }, {
                .desc           = "aprouter",
                .type           = EV_KEY,
                .code           = BTN_2,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = MZK_W04NU_GPIO_BTN_APROUTER,
                .active_low     = 0,
        }
index 88a3bd17b64a1912dad0b09510f84c97109eec09..3a38c8285196ab60f4f2aff6073c9479061b0807 100644 (file)
@@ -105,21 +105,21 @@ static struct gpio_button mzk_w300nh_gpio_buttons[] __initdata = {
                .desc           = "reset",
                .type           = EV_KEY,
                .code           = BTN_0,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = MZK_W300NH_GPIO_BTN_RESET,
                .active_low     = 1,
        }, {
                .desc           = "wps",
                .type           = EV_KEY,
                .code           = BTN_1,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = MZK_W300NH_GPIO_BTN_WPS,
                .active_low     = 1,
        }, {
                .desc           = "aprouter",
                .type           = EV_KEY,
                .code           = BTN_2,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = MZK_W300NH_GPIO_BTN_APROUTER,
                .active_low     = 0,
        }
index 44bf38991c1957da7b9482954cb6cc07919d4c0f..96a976f8a82644651e344b52a48d9fa9dc923162 100644 (file)
@@ -28,14 +28,14 @@ static struct gpio_button pb42_gpio_buttons[] __initdata = {
                .desc           = "sw4",
                .type           = EV_KEY,
                .code           = BTN_0,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = PB42_GPIO_BTN_SW4,
                .active_low     = 1,
        } , {
                .desc           = "sw5",
                .type           = EV_KEY,
                .code           = BTN_1,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = PB42_GPIO_BTN_SW5,
                .active_low     = 1,
        }
index 7cace674b837a68b0966963de0e7285d288f4007..052884f5c7151cbb448bf9a136a1a58a6acb3875 100644 (file)
@@ -95,14 +95,14 @@ static struct gpio_button pb44_gpio_buttons[] __initdata = {
                .desc           = "soft_reset",
                .type           = EV_KEY,
                .code           = BTN_0,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = PB44_GPIO_SW_RESET,
                .active_low     = 1,
        } , {
                .desc           = "jumpstart",
                .type           = EV_KEY,
                .code           = BTN_1,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = PB44_GPIO_SW_JUMP,
                .active_low     = 1,
        }
index ab3d65be942ca7b1caea73b2eeff08bf5160b269..2392c3dc6e4a59ba7775447ec8ded83c5023825b 100644 (file)
@@ -43,7 +43,7 @@ static struct gpio_button rb4xx_gpio_buttons[] __initdata = {
                .desc           = "reset_switch",
                .type           = EV_KEY,
                .code           = BTN_0,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = RB4XX_GPIO_RESET_SWITCH,
                .active_low     = 1,
        }
index c92cb00ebf79a6419b4591e204cb7a692ec0fd0a..4abb8e4ed1e24c4c75dce398a1529315e39f4f26 100644 (file)
@@ -93,13 +93,13 @@ static struct gpio_button tew_632brp_gpio_buttons[] __initdata = {
                .desc           = "reset",
                .type           = EV_KEY,
                .code           = BTN_0,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = TEW_632BRP_GPIO_BTN_RESET,
        }, {
                .desc           = "wps",
                .type           = EV_KEY,
                .code           = BTN_1,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = TEW_632BRP_GPIO_BTN_WPS,
        }
 };
index 79bb227131e02c749779284909633c1e065fda24..03508dbabbee86201bd0606bb6d669d3587ee382 100644 (file)
@@ -91,14 +91,14 @@ static struct gpio_button tl_wr1043nd_gpio_buttons[] __initdata = {
                .desc           = "reset",
                .type           = EV_KEY,
                .code           = BTN_0,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = TL_WR1043ND_GPIO_BTN_RESET,
                .active_low     = 1,
        }, {
                .desc           = "qss",
                .type           = EV_KEY,
                .code           = BTN_1,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = TL_WR1043ND_GPIO_BTN_QSS,
                .active_low     = 1,
        }
index b2d33c0d7775b79f181ca670705f64779fdd8fff..e5d9776392c3e146ee5efb64623f26cf83ff723a 100644 (file)
@@ -80,14 +80,14 @@ static struct gpio_button tl_wr741nd_gpio_buttons[] __initdata = {
                .desc           = "reset",
                .type           = EV_KEY,
                .code           = BTN_0,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = TL_WR741ND_GPIO_BTN_RESET,
                .active_low     = 1,
        }, {
                .desc           = "qss",
                .type           = EV_KEY,
                .code           = BTN_1,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = TL_WR741ND_GPIO_BTN_QSS,
                .active_low     = 1,
        }
index 3bc063ae51cc843eff00f48c7a7aea2d3774803c..9f9e3c6e8aaba0e3fef7e49e3846da66e51b88b8 100644 (file)
@@ -84,14 +84,14 @@ static struct gpio_button tl_wr841n_v1_gpio_buttons[] __initdata = {
                .desc           = "reset",
                .type           = EV_KEY,
                .code           = BTN_0,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = TL_WR841ND_V1_GPIO_BTN_RESET,
                .active_low     = 1,
        }, {
                .desc           = "qss",
                .type           = EV_KEY,
                .code           = BTN_1,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = TL_WR841ND_V1_GPIO_BTN_QSS,
                .active_low     = 1,
        }
index 0f4277ea0dacc8eaa5ea62811e590e2b852707f3..67af5b0f1ad6df706332f46539fac0f898770807 100644 (file)
@@ -84,14 +84,14 @@ static struct gpio_button tl_wr941nd_gpio_buttons[] __initdata = {
                .desc           = "reset",
                .type           = EV_KEY,
                .code           = BTN_0,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = TL_WR941ND_GPIO_BTN_RESET,
                .active_low     = 1,
        }, {
                .desc           = "qss",
                .type           = EV_KEY,
                .code           = BTN_1,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = TL_WR941ND_GPIO_BTN_QSS,
                .active_low     = 1,
        }
index 37151ab02ce981f8fafa222af981b931ec9d90a0..5b1c504f39b2d49443766d630962ebd784718542 100644 (file)
@@ -105,7 +105,7 @@ static struct gpio_button ubnt_gpio_buttons[] __initdata = {
                .desc           = "sw4",
                .type           = EV_KEY,
                .code           = BTN_0,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = UBNT_RS_GPIO_SW4,
                .active_low     = 1,
        }
@@ -116,7 +116,7 @@ static struct gpio_button ubnt_m_gpio_buttons[] __initdata = {
                .desc           = "reset",
                .type           = EV_KEY,
                .code           = BTN_0,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = UBNT_M_GPIO_BTN_RESET,
                .active_low     = 1,
        }
index 14cde55d276e9a88ae29166e1b75cf05c24854b5..b289d9d727808a714f6959dc4a71aa2085fc52ef 100644 (file)
@@ -126,19 +126,19 @@ static struct gpio_button wndr3700_gpio_buttons[] __initdata = {
                .desc           = "reset",
                .type           = EV_KEY,
                .code           = BTN_0,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = WNDR3700_GPIO_BTN_RESET,
        }, {
                .desc           = "wps",
                .type           = EV_KEY,
                .code           = BTN_1,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = WNDR3700_GPIO_BTN_WPS,
        } , {
                .desc           = "wifi",
                .type           = EV_KEY,
                .code           = BTN_2,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = WNDR3700_GPIO_BTN_WIFI,
        }
 };
index 778e99d7109317bdce6f9a6a27bb74ca64481826..bf4be894657c40b5804019e0a5d918f231d561c8 100644 (file)
@@ -103,13 +103,13 @@ static struct gpio_button wnr2000_gpio_buttons[] __initdata = {
                .desc           = "reset",
                .type           = EV_KEY,
                .code           = BTN_0,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = WNR2000_GPIO_BTN_RESET,
        }, {
                .desc           = "wps",
                .type           = EV_KEY,
                .code           = BTN_1,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = WNR2000_GPIO_BTN_WPS,
        }
 };
index a2669f17a13a9a2bb1b39b6e08bd6bb4e85f7713..bf8b9f562374ff14567c037606f10513d7d01fa2 100644 (file)
@@ -61,13 +61,13 @@ static struct gpio_button wp543_gpio_buttons[] __initdata = {
                .desc           = "sw6",
                .type           = EV_KEY,
                .code           = BTN_0,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = WP543_GPIO_SW6,
        }, {
                .desc           = "sw4",
                .type           = EV_KEY,
                .code           = BTN_1,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = WP543_GPIO_SW4,
        }
 };
index 9c85235eae0e4edef2e83e0537ff520d59cfe91b..7fb97d979a52e6f5db03e25432dad623ae1ef2b7 100644 (file)
@@ -101,14 +101,14 @@ static struct gpio_button wrt160nl_gpio_buttons[] __initdata = {
                .desc           = "reset",
                .type           = EV_KEY,
                .code           = BTN_0,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = WRT160NL_GPIO_BTN_RESET,
                .active_low     = 1,
        }, {
                .desc           = "wps",
                .type           = EV_KEY,
                .code           = BTN_1,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = WRT160NL_GPIO_BTN_WPS,
                .active_low     = 1,
        }
index 465b6c61243e74bf8196112ac33e6294709b85e1..3d50afcbb21339b386daf8eb07a14f3ad05f0422 100644 (file)
@@ -115,14 +115,14 @@ static struct gpio_button wrt400n_gpio_buttons[] __initdata = {
                .desc           = "reset",
                .type           = EV_KEY,
                .code           = BTN_0,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = WRT400N_GPIO_BTN_RESET,
                .active_low     = 1,
        } , {
                .desc           = "wlsec",
                .type           = EV_KEY,
                .code           = BTN_1,
-               .threshold      = 5,
+               .threshold      = 3,
                .gpio           = WRT400N_GPIO_BTN_WLSEC,
                .active_low     = 1,
        }