ar71xx: Buffalo WZR-HP-AG300H (600DHP) change button type
authorLuka Perkov <luka@openwrt.org>
Tue, 2 Jul 2013 10:45:32 +0000 (10:45 +0000)
committerLuka Perkov <luka@openwrt.org>
Tue, 2 Jul 2013 10:45:32 +0000 (10:45 +0000)
switch buttons should be declared as switch so the failsafe shell is not
triggered by accident in procd

Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 37131

target/linux/ar71xx/files/arch/mips/ath79/mach-wzr-hp-ag300h.c

index 9ba5ecd2eaa5398c5d0732c6a4036505a8c076db..824ac52d32b217138c1ea3ac50ff043b0655a757 100644 (file)
@@ -140,21 +140,21 @@ static struct gpio_keys_button wzrhpag300h_gpio_keys[] __initdata = {
                .active_low     = 1,
        }, {
                .desc           = "router_auto",
-               .type           = EV_KEY,
+               .type           = EV_SW,
                .code           = BTN_6,
                .debounce_interval = WZRHPAG300H_KEYS_DEBOUNCE_INTERVAL,
                .gpio           = 6,
                .active_low     = 1,
        }, {
                .desc           = "router_off",
-               .type           = EV_KEY,
+               .type           = EV_SW,
                .code           = BTN_5,
                .debounce_interval = WZRHPAG300H_KEYS_DEBOUNCE_INTERVAL,
                .gpio           = 7,
                .active_low     = 1,
        }, {
                .desc           = "movie_engine",
-               .type           = EV_KEY,
+               .type           = EV_SW,
                .code           = BTN_7,
                .debounce_interval = WZRHPAG300H_KEYS_DEBOUNCE_INTERVAL,
                .gpio           = 8,