aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/bcm47xx/buttons.c
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2014-01-03 03:37:42 -0500
committerRalf Baechle <ralf@linux-mips.org>2014-01-24 16:39:53 -0500
commite7277e1dcc8c332a1d69f4c585e593bcbc9c5970 (patch)
tree1a6fd410a2b1feda84226b305b7207ebef62e809 /arch/mips/bcm47xx/buttons.c
parentaeee3f5a4d3c3c953bf30e1278df8815995995ac (diff)
MIPS: BCM47XX: Convert WNDR4500 to new syntax
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John Crispin <blogic@openwrt.org> Patchwork: http://patchwork.linux-mips.org/patch/6313/
Diffstat (limited to 'arch/mips/bcm47xx/buttons.c')
-rw-r--r--arch/mips/bcm47xx/buttons.c22
1 files changed, 5 insertions, 17 deletions
diff --git a/arch/mips/bcm47xx/buttons.c b/arch/mips/bcm47xx/buttons.c
index 13f8e4191bdc..51815bae3633 100644
--- a/arch/mips/bcm47xx/buttons.c
+++ b/arch/mips/bcm47xx/buttons.c
@@ -305,22 +305,10 @@ bcm47xx_buttons_netgear_wndr3700v3[] __initconst = {
305}; 305};
306 306
307static const struct gpio_keys_button 307static const struct gpio_keys_button
308bcm47xx_buttons_netgear_wndr4500_v1[] __initconst = { 308bcm47xx_buttons_netgear_wndr4500v1[] __initconst = {
309 { 309 BCM47XX_GPIO_KEY(4, KEY_WPS_BUTTON),
310 .code = KEY_WPS_BUTTON, 310 BCM47XX_GPIO_KEY(5, KEY_RFKILL),
311 .gpio = 4, 311 BCM47XX_GPIO_KEY(6, KEY_RESTART),
312 .active_low = 1,
313 },
314 {
315 .code = KEY_RFKILL,
316 .gpio = 5,
317 .active_low = 1,
318 },
319 {
320 .code = KEY_RESTART,
321 .gpio = 6,
322 .active_low = 1,
323 },
324}; 312};
325 313
326static const struct gpio_keys_button 314static const struct gpio_keys_button
@@ -523,7 +511,7 @@ int __init bcm47xx_buttons_register(void)
523 err = bcm47xx_copy_bdata(bcm47xx_buttons_netgear_wndr3700v3); 511 err = bcm47xx_copy_bdata(bcm47xx_buttons_netgear_wndr3700v3);
524 break; 512 break;
525 case BCM47XX_BOARD_NETGEAR_WNDR4500V1: 513 case BCM47XX_BOARD_NETGEAR_WNDR4500V1:
526 err = bcm47xx_copy_bdata(bcm47xx_buttons_netgear_wndr4500_v1); 514 err = bcm47xx_copy_bdata(bcm47xx_buttons_netgear_wndr4500v1);
527 break; 515 break;
528 case BCM47XX_BOARD_NETGEAR_WNR834BV2: 516 case BCM47XX_BOARD_NETGEAR_WNR834BV2:
529 err = bcm47xx_copy_bdata(bcm47xx_buttons_netgear_wnr834bv2); 517 err = bcm47xx_copy_bdata(bcm47xx_buttons_netgear_wnr834bv2);