X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/7b8a4fb8e01f90d814d383dc05e3f572db501ad1..e5e2a4f7fb33f7df9b5d1aed44811e60dc571f36:/target/linux/brcm63xx/patches-2.6.33/100-reset_buttons.patch?ds=sidebyside diff --git a/target/linux/brcm63xx/patches-2.6.33/100-reset_buttons.patch b/target/linux/brcm63xx/patches-2.6.33/100-reset_buttons.patch index 292e0a7cc..6b72ca22a 100644 --- a/target/linux/brcm63xx/patches-2.6.33/100-reset_buttons.patch +++ b/target/linux/brcm63xx/patches-2.6.33/100-reset_buttons.patch @@ -13,13 +13,13 @@ .active_low = 1, }, }, -+ .reset_buttons = { ++ .buttons = { + { + .desc = "reset", + .gpio = 32, + .active_low = 1, + .type = EV_KEY, -+ .code = BTN_0, ++ .code = KEY_RESTART, + .threshold = 3, + }, + }, @@ -30,13 +30,13 @@ .active_low = 1, }, }, -+ .reset_buttons = { ++ .buttons = { + { + .desc = "reset", + .gpio = 36, + .active_low = 1, + .type = EV_KEY, -+ .code = BTN_0, ++ .code = KEY_RESTART, + .threshold = 3, + }, + }, @@ -72,12 +72,12 @@ platform_device_register(&bcm63xx_gpio_leds); + /* count number of BUTTONs defined by this device */ -+ while (button_count < ARRAY_SIZE(board.reset_buttons) && board.reset_buttons[button_count].desc) ++ while (button_count < ARRAY_SIZE(board.buttons) && board.buttons[button_count].desc) + button_count++; + + if (button_count) { + bcm63xx_gpio_buttons_data.nbuttons = button_count; -+ bcm63xx_gpio_buttons_data.buttons = board.reset_buttons; ++ bcm63xx_gpio_buttons_data.buttons = board.buttons; + + platform_device_register(&bcm63xx_gpio_buttons_device); + } @@ -92,8 +92,8 @@ /* GPIO LEDs */ struct gpio_led leds[5]; + -+ /* Reset button */ -+ struct gpio_button reset_buttons[1]; ++ /* Buttons */ ++ struct gpio_button buttons[2]; }; #endif /* ! BOARD_BCM963XX_H_ */