mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-25 12:57:42 +02:00
ramips: use KEY_RESTART and KEY_WPS_BUTTON code for the appropriate buttons
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21083 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
892d978a39
commit
3e39b51297
@ -84,14 +84,14 @@ static struct gpio_button rt_n15_gpio_buttons[] __initdata = {
|
||||
{
|
||||
.desc = "reset",
|
||||
.type = EV_KEY,
|
||||
.code = BTN_0,
|
||||
.code = KEY_RESTART,
|
||||
.threshold = 3,
|
||||
.gpio = RT_N15_GPIO_BUTTON_RESET,
|
||||
.active_low = 1,
|
||||
}, {
|
||||
.desc = "wps",
|
||||
.type = EV_KEY,
|
||||
.code = BTN_1,
|
||||
.code = KEY_WPS_BUTTON,
|
||||
.threshold = 3,
|
||||
.gpio = RT_N15_GPIO_BUTTON_WPS,
|
||||
.active_low = 1,
|
||||
|
@ -91,14 +91,14 @@ static struct gpio_button dir_300b_gpio_buttons[] __initdata = {
|
||||
{
|
||||
.desc = "reset",
|
||||
.type = EV_KEY,
|
||||
.code = BTN_0,
|
||||
.code = KEY_RESTART,
|
||||
.threshold = 3,
|
||||
.gpio = DIR_300B_GPIO_BUTTON_RESET,
|
||||
.active_low = 1,
|
||||
}, {
|
||||
.desc = "wps",
|
||||
.type = EV_KEY,
|
||||
.code = BTN_1,
|
||||
.code = KEY_WPS_BUTTON,
|
||||
.threshold = 3,
|
||||
.gpio = DIR_300B_GPIO_BUTTON_WPS,
|
||||
.active_low = 1,
|
||||
|
@ -91,7 +91,7 @@ static struct gpio_button fonera20n_gpio_buttons[] __initdata = {
|
||||
{
|
||||
.desc = "reset",
|
||||
.type = EV_KEY,
|
||||
.code = BTN_0,
|
||||
.code = KEY_RESTART,
|
||||
.threshold = 3,
|
||||
.gpio = FONERA20N_GPIO_BUTTON_RESET,
|
||||
.active_low = 1,
|
||||
|
@ -85,14 +85,14 @@ static struct gpio_button v22rw_2x2_gpio_buttons[] __initdata = {
|
||||
{
|
||||
.desc = "reset",
|
||||
.type = EV_KEY,
|
||||
.code = BTN_0,
|
||||
.code = KEY_RESTART,
|
||||
.threshold = 3,
|
||||
.gpio = V22RW_2X2_GPIO_BUTTON_SWRST,
|
||||
.active_low = 1,
|
||||
}, {
|
||||
.desc = "wps",
|
||||
.type = EV_KEY,
|
||||
.code = BTN_1,
|
||||
.code = KEY_WPS_BUTTON,
|
||||
.threshold = 3,
|
||||
.gpio = V22RW_2X2_GPIO_BUTTON_WPS,
|
||||
.active_low = 1,
|
||||
|
@ -97,14 +97,14 @@ static struct gpio_button whr_g300n_gpio_buttons[] __initdata = {
|
||||
{
|
||||
.desc = "reset",
|
||||
.type = EV_KEY,
|
||||
.code = BTN_0,
|
||||
.code = KEY_RESTART,
|
||||
.threshold = 3,
|
||||
.gpio = WHR_G300N_GPIO_BUTTON_RESET,
|
||||
.active_low = 1,
|
||||
}, {
|
||||
.desc = "aoss",
|
||||
.type = EV_KEY,
|
||||
.code = BTN_1,
|
||||
.code = KEY_WPS_BUTTON,
|
||||
.threshold = 3,
|
||||
.gpio = WHR_G300N_GPIO_BUTTON_AOSS,
|
||||
.active_low = 1,
|
||||
|
Loading…
Reference in New Issue
Block a user