diff options
author | Raphaël HUCK <rhk@cksum.org> | 2010-04-29 12:54:24 +0000 |
---|---|---|
committer | Raphaël HUCK <rhk@cksum.org> | 2010-04-29 12:54:24 +0000 |
commit | ea459f4e40c7d5bf233cbfa0565b0df4989fa277 (patch) | |
tree | 1bcd4aec7a81e4e6e5a7b397040ee5ff1643571f /target/linux/brcm63xx/patches-2.6.33/100-reset_buttons.patch | |
parent | bcca3791ea1c1e8620b6dc1e8828eae73af5282f (diff) | |
download | upstream-ea459f4e40c7d5bf233cbfa0565b0df4989fa277.tar.gz upstream-ea459f4e40c7d5bf233cbfa0565b0df4989fa277.tar.bz2 upstream-ea459f4e40c7d5bf233cbfa0565b0df4989fa277.zip |
[brcm63xx] rename reset_buttons to buttons
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@21255 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/brcm63xx/patches-2.6.33/100-reset_buttons.patch')
-rw-r--r-- | target/linux/brcm63xx/patches-2.6.33/100-reset_buttons.patch | 12 |
1 files changed, 6 insertions, 6 deletions
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 aa5264d845..6b72ca22a3 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,7 +13,7 @@ .active_low = 1, }, }, -+ .reset_buttons = { ++ .buttons = { + { + .desc = "reset", + .gpio = 32, @@ -30,7 +30,7 @@ .active_low = 1, }, }, -+ .reset_buttons = { ++ .buttons = { + { + .desc = "reset", + .gpio = 36, @@ -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[2]; ++ /* Buttons */ ++ struct gpio_button buttons[2]; }; #endif /* ! BOARD_BCM963XX_H_ */ |