1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-25 09:17:42 +02:00

ar71xx: use KEY_RESTART and KEY_WPS_BUTTON code for the appropriate buttons

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21075 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg 2010-04-21 19:07:19 +00:00
parent 00e98778b8
commit e1b44378be
21 changed files with 40 additions and 40 deletions

View File

@ -119,14 +119,14 @@ static struct gpio_button ap83_gpio_buttons[] __initdata = {
{ {
.desc = "soft_reset", .desc = "soft_reset",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_0, .code = KEY_RESTART,
.threshold = 3, .threshold = 3,
.gpio = AP83_GPIO_BTN_RESET, .gpio = AP83_GPIO_BTN_RESET,
.active_low = 1, .active_low = 1,
} , { } , {
.desc = "jumpstart", .desc = "jumpstart",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_1, .code = KEY_WPS_BUTTON,
.threshold = 3, .threshold = 3,
.gpio = AP83_GPIO_BTN_JUMPSTART, .gpio = AP83_GPIO_BTN_JUMPSTART,
.active_low = 1, .active_low = 1,

View File

@ -61,14 +61,14 @@ static struct gpio_button aw_nr580_gpio_buttons[] __initdata = {
{ {
.desc = "reset", .desc = "reset",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_0, .code = KEY_RESTART,
.threshold = 3, .threshold = 3,
.gpio = AW_NR580_GPIO_BTN_RESET, .gpio = AW_NR580_GPIO_BTN_RESET,
.active_low = 1, .active_low = 1,
}, { }, {
.desc = "wps", .desc = "wps",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_1, .code = KEY_WPS_BUTTON,
.threshold = 3, .threshold = 3,
.gpio = AW_NR580_GPIO_BTN_WPS, .gpio = AW_NR580_GPIO_BTN_WPS,
.active_low = 1, .active_low = 1,

View File

@ -96,14 +96,14 @@ static struct gpio_button dir_600_a1_gpio_buttons[] __initdata = {
{ {
.desc = "reset", .desc = "reset",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_0, .code = KEY_RESTART,
.threshold = 3, .threshold = 3,
.gpio = DIR_600_A1_GPIO_BTN_RESET, .gpio = DIR_600_A1_GPIO_BTN_RESET,
.active_low = 1, .active_low = 1,
}, { }, {
.desc = "wps", .desc = "wps",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_1, .code = KEY_WPS_BUTTON,
.threshold = 3, .threshold = 3,
.gpio = DIR_600_A1_GPIO_BTN_WPS, .gpio = DIR_600_A1_GPIO_BTN_WPS,
.active_low = 1, .active_low = 1,

View File

@ -116,13 +116,13 @@ static struct gpio_button dir_615c1_gpio_buttons[] __initdata = {
{ {
.desc = "reset", .desc = "reset",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_0, .code = KEY_RESTART,
.threshold = 3, .threshold = 3,
.gpio = DIR_615C1_GPIO_BTN_RESET, .gpio = DIR_615C1_GPIO_BTN_RESET,
}, { }, {
.desc = "wps", .desc = "wps",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_1, .code = KEY_WPS_BUTTON,
.threshold = 3, .threshold = 3,
.gpio = DIR_615C1_GPIO_BTN_WPS, .gpio = DIR_615C1_GPIO_BTN_WPS,
} }

View File

@ -116,7 +116,7 @@ static struct gpio_button dir825b1_gpio_buttons[] __initdata = {
{ {
.desc = "reset", .desc = "reset",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_0, .code = KEY_RESTART,
.threshold = 3, .threshold = 3,
.gpio = DIR825B1_GPIO_BTN_RESET, .gpio = DIR825B1_GPIO_BTN_RESET,
.active_low = 1, .active_low = 1,

View File

@ -105,14 +105,14 @@ static struct gpio_button mzk_w04nu_gpio_buttons[] __initdata = {
{ {
.desc = "reset", .desc = "reset",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_0, .code = KEY_RESTART,
.threshold = 3, .threshold = 3,
.gpio = MZK_W04NU_GPIO_BTN_RESET, .gpio = MZK_W04NU_GPIO_BTN_RESET,
.active_low = 1, .active_low = 1,
}, { }, {
.desc = "wps", .desc = "wps",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_1, .code = KEY_WPS_BUTTON,
.threshold = 3, .threshold = 3,
.gpio = MZK_W04NU_GPIO_BTN_WPS, .gpio = MZK_W04NU_GPIO_BTN_WPS,
.active_low = 1, .active_low = 1,

View File

@ -104,14 +104,14 @@ static struct gpio_button mzk_w300nh_gpio_buttons[] __initdata = {
{ {
.desc = "reset", .desc = "reset",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_0, .code = KEY_RESTART,
.threshold = 3, .threshold = 3,
.gpio = MZK_W300NH_GPIO_BTN_RESET, .gpio = MZK_W300NH_GPIO_BTN_RESET,
.active_low = 1, .active_low = 1,
}, { }, {
.desc = "wps", .desc = "wps",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_1, .code = KEY_WPS_BUTTON,
.threshold = 3, .threshold = 3,
.gpio = MZK_W300NH_GPIO_BTN_WPS, .gpio = MZK_W300NH_GPIO_BTN_WPS,
.active_low = 1, .active_low = 1,

View File

@ -111,14 +111,14 @@ static struct gpio_button nbg460n_gpio_buttons[] __initdata = {
{ {
.desc = "reset", .desc = "reset",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_0, .code = KEY_RESTART,
.threshold = 5, .threshold = 5,
.gpio = NBG460N_GPIO_BTN_RESET, .gpio = NBG460N_GPIO_BTN_RESET,
.active_low = 1, .active_low = 1,
}, { }, {
.desc = "wps", .desc = "wps",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_1, .code = KEY_WPS_BUTTON,
.threshold = 5, .threshold = 5,
.gpio = NBG460N_GPIO_BTN_WPS, .gpio = NBG460N_GPIO_BTN_WPS,
.active_low = 1, .active_low = 1,

View File

@ -94,14 +94,14 @@ static struct gpio_button pb44_gpio_buttons[] __initdata = {
{ {
.desc = "soft_reset", .desc = "soft_reset",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_0, .code = KEY_RESTART,
.threshold = 3, .threshold = 3,
.gpio = PB44_GPIO_SW_RESET, .gpio = PB44_GPIO_SW_RESET,
.active_low = 1, .active_low = 1,
} , { } , {
.desc = "jumpstart", .desc = "jumpstart",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_1, .code = KEY_WPS_BUTTON,
.threshold = 3, .threshold = 3,
.gpio = PB44_GPIO_SW_JUMP, .gpio = PB44_GPIO_SW_JUMP,
.active_low = 1, .active_low = 1,

View File

@ -42,7 +42,7 @@ static struct gpio_button rb4xx_gpio_buttons[] __initdata = {
{ {
.desc = "reset_switch", .desc = "reset_switch",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_0, .code = KEY_RESTART,
.threshold = 3, .threshold = 3,
.gpio = RB4XX_GPIO_RESET_SWITCH, .gpio = RB4XX_GPIO_RESET_SWITCH,
.active_low = 1, .active_low = 1,

View File

@ -92,13 +92,13 @@ static struct gpio_button tew_632brp_gpio_buttons[] __initdata = {
{ {
.desc = "reset", .desc = "reset",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_0, .code = KEY_RESTART,
.threshold = 3, .threshold = 3,
.gpio = TEW_632BRP_GPIO_BTN_RESET, .gpio = TEW_632BRP_GPIO_BTN_RESET,
}, { }, {
.desc = "wps", .desc = "wps",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_1, .code = KEY_WPS_BUTTON,
.threshold = 3, .threshold = 3,
.gpio = TEW_632BRP_GPIO_BTN_WPS, .gpio = TEW_632BRP_GPIO_BTN_WPS,
} }

View File

@ -94,14 +94,14 @@ static struct gpio_button tl_wr1043nd_gpio_buttons[] __initdata = {
{ {
.desc = "reset", .desc = "reset",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_0, .code = KEY_RESTART,
.threshold = 3, .threshold = 3,
.gpio = TL_WR1043ND_GPIO_BTN_RESET, .gpio = TL_WR1043ND_GPIO_BTN_RESET,
.active_low = 1, .active_low = 1,
}, { }, {
.desc = "qss", .desc = "qss",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_1, .code = KEY_WPS_BUTTON,
.threshold = 3, .threshold = 3,
.gpio = TL_WR1043ND_GPIO_BTN_QSS, .gpio = TL_WR1043ND_GPIO_BTN_QSS,
.active_low = 1, .active_low = 1,

View File

@ -80,14 +80,14 @@ static struct gpio_button tl_wr741nd_gpio_buttons[] __initdata = {
{ {
.desc = "reset", .desc = "reset",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_0, .code = KEY_RESTART,
.threshold = 3, .threshold = 3,
.gpio = TL_WR741ND_GPIO_BTN_RESET, .gpio = TL_WR741ND_GPIO_BTN_RESET,
.active_low = 1, .active_low = 1,
}, { }, {
.desc = "qss", .desc = "qss",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_1, .code = KEY_WPS_BUTTON,
.threshold = 3, .threshold = 3,
.gpio = TL_WR741ND_GPIO_BTN_QSS, .gpio = TL_WR741ND_GPIO_BTN_QSS,
.active_low = 1, .active_low = 1,

View File

@ -83,14 +83,14 @@ static struct gpio_button tl_wr841n_v1_gpio_buttons[] __initdata = {
{ {
.desc = "reset", .desc = "reset",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_0, .code = KEY_RESTART,
.threshold = 3, .threshold = 3,
.gpio = TL_WR841ND_V1_GPIO_BTN_RESET, .gpio = TL_WR841ND_V1_GPIO_BTN_RESET,
.active_low = 1, .active_low = 1,
}, { }, {
.desc = "qss", .desc = "qss",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_1, .code = KEY_WPS_BUTTON,
.threshold = 3, .threshold = 3,
.gpio = TL_WR841ND_V1_GPIO_BTN_QSS, .gpio = TL_WR841ND_V1_GPIO_BTN_QSS,
.active_low = 1, .active_low = 1,

View File

@ -83,14 +83,14 @@ static struct gpio_button tl_wr941nd_gpio_buttons[] __initdata = {
{ {
.desc = "reset", .desc = "reset",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_0, .code = KEY_RESTART,
.threshold = 3, .threshold = 3,
.gpio = TL_WR941ND_GPIO_BTN_RESET, .gpio = TL_WR941ND_GPIO_BTN_RESET,
.active_low = 1, .active_low = 1,
}, { }, {
.desc = "qss", .desc = "qss",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_1, .code = KEY_WPS_BUTTON,
.threshold = 3, .threshold = 3,
.gpio = TL_WR941ND_GPIO_BTN_QSS, .gpio = TL_WR941ND_GPIO_BTN_QSS,
.active_low = 1, .active_low = 1,

View File

@ -104,7 +104,7 @@ static struct gpio_button ubnt_gpio_buttons[] __initdata = {
{ {
.desc = "sw4", .desc = "sw4",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_0, .code = KEY_RESTART,
.threshold = 3, .threshold = 3,
.gpio = UBNT_RS_GPIO_SW4, .gpio = UBNT_RS_GPIO_SW4,
.active_low = 1, .active_low = 1,
@ -115,7 +115,7 @@ static struct gpio_button ubnt_m_gpio_buttons[] __initdata = {
{ {
.desc = "reset", .desc = "reset",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_0, .code = KEY_RESTART,
.threshold = 3, .threshold = 3,
.gpio = UBNT_M_GPIO_BTN_RESET, .gpio = UBNT_M_GPIO_BTN_RESET,
.active_low = 1, .active_low = 1,

View File

@ -130,14 +130,14 @@ static struct gpio_button wndr3700_gpio_buttons[] __initdata = {
{ {
.desc = "reset", .desc = "reset",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_0, .code = KEY_RESTART,
.threshold = 3, .threshold = 3,
.gpio = WNDR3700_GPIO_BTN_RESET, .gpio = WNDR3700_GPIO_BTN_RESET,
.active_low = 1, .active_low = 1,
}, { }, {
.desc = "wps", .desc = "wps",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_1, .code = KEY_WPS_BUTTON,
.threshold = 3, .threshold = 3,
.gpio = WNDR3700_GPIO_BTN_WPS, .gpio = WNDR3700_GPIO_BTN_WPS,
.active_low = 1, .active_low = 1,

View File

@ -102,13 +102,13 @@ static struct gpio_button wnr2000_gpio_buttons[] __initdata = {
{ {
.desc = "reset", .desc = "reset",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_0, .code = KEY_RESTART,
.threshold = 3, .threshold = 3,
.gpio = WNR2000_GPIO_BTN_RESET, .gpio = WNR2000_GPIO_BTN_RESET,
}, { }, {
.desc = "wps", .desc = "wps",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_1, .code = KEY_WPS_BUTTON,
.threshold = 3, .threshold = 3,
.gpio = WNR2000_GPIO_BTN_WPS, .gpio = WNR2000_GPIO_BTN_WPS,
} }

View File

@ -100,14 +100,14 @@ static struct gpio_button wrt160nl_gpio_buttons[] __initdata = {
{ {
.desc = "reset", .desc = "reset",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_0, .code = KEY_RESTART,
.threshold = 3, .threshold = 3,
.gpio = WRT160NL_GPIO_BTN_RESET, .gpio = WRT160NL_GPIO_BTN_RESET,
.active_low = 1, .active_low = 1,
}, { }, {
.desc = "wps", .desc = "wps",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_1, .code = KEY_WPS_BUTTON,
.threshold = 3, .threshold = 3,
.gpio = WRT160NL_GPIO_BTN_WPS, .gpio = WRT160NL_GPIO_BTN_WPS,
.active_low = 1, .active_low = 1,

View File

@ -114,14 +114,14 @@ static struct gpio_button wrt400n_gpio_buttons[] __initdata = {
{ {
.desc = "reset", .desc = "reset",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_0, .code = KEY_RESTART,
.threshold = 3, .threshold = 3,
.gpio = WRT400N_GPIO_BTN_RESET, .gpio = WRT400N_GPIO_BTN_RESET,
.active_low = 1, .active_low = 1,
} , { } , {
.desc = "wlsec", .desc = "wlsec",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_1, .code = KEY_WPS_BUTTON,
.threshold = 3, .threshold = 3,
.gpio = WRT400N_GPIO_BTN_WLSEC, .gpio = WRT400N_GPIO_BTN_WLSEC,
.active_low = 1, .active_low = 1,

View File

@ -147,14 +147,14 @@ static struct gpio_button wzrhpg300nh_gpio_buttons[] __initdata = {
{ {
.desc = "reset", .desc = "reset",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_0, .code = KEY_RESTART,
.threshold = 3, .threshold = 3,
.gpio = WZRHPG300NH_GPIO_BTN_RESET, .gpio = WZRHPG300NH_GPIO_BTN_RESET,
.active_low = 1, .active_low = 1,
}, { }, {
.desc = "aoss", .desc = "aoss",
.type = EV_KEY, .type = EV_KEY,
.code = BTN_1, .code = KEY_WPS_BUTTON,
.threshold = 3, .threshold = 3,
.gpio = WZRHPG300NH_GPIO_BTN_AOSS, .gpio = WZRHPG300NH_GPIO_BTN_AOSS,
.active_low = 1, .active_low = 1,