Skip to contentSkip to conversation

MIPS: BCM47XX: Convert WNDR4500 to new syntax

PATCH New Rafał Miłecki 1 participant 1 message Jan 3, 2014

Subsystems (2)
lore
Share & tools
lore

Rafał Miłecki

author maintainer
#0 lore raw

PATCH 1/1 MIPS: BCM47XX: Convert WNDR4500 to new syntax

---
 arch/mips/bcm47xx/buttons.c |   22 ++++--------------
 arch/mips/bcm47xx/leds.c    |   53 ++++++++-----------------------------------
 2 files changed, 14 insertions(+), 61 deletions(-)
arch/mips/bcm47xx/buttons.c +5 -17
index 13f8e41..51815ba 100644
@@ -305,22 +305,10 @@ bcm47xx_buttons_netgear_wndr3700v3[] __initconst = {
 };
 
 static const struct gpio_keys_button
-bcm47xx_buttons_netgear_wndr4500_v1[] __initconst = {
-	{
-		.code		= KEY_WPS_BUTTON,
-		.gpio		= 4,
-		.active_low	= 1,
-	},
-	{
-		.code		= KEY_RFKILL,
-		.gpio		= 5,
-		.active_low	= 1,
-	},
-	{
-		.code		= KEY_RESTART,
-		.gpio		= 6,
-		.active_low	= 1,
-	},
+bcm47xx_buttons_netgear_wndr4500v1[] __initconst = {
+	BCM47XX_GPIO_KEY(4, KEY_WPS_BUTTON),
+	BCM47XX_GPIO_KEY(5, KEY_RFKILL),
+	BCM47XX_GPIO_KEY(6, KEY_RESTART),
 };
 
 static const struct gpio_keys_button
@@ -523,7 +511,7 @@ int __init bcm47xx_buttons_register(void)
 		err = bcm47xx_copy_bdata(bcm47xx_buttons_netgear_wndr3700v3);
 		break;
 	case BCM47XX_BOARD_NETGEAR_WNDR4500V1:
-		err = bcm47xx_copy_bdata(bcm47xx_buttons_netgear_wndr4500_v1);
+		err = bcm47xx_copy_bdata(bcm47xx_buttons_netgear_wndr4500v1);
 		break;
 	case BCM47XX_BOARD_NETGEAR_WNR834BV2:
 		err = bcm47xx_copy_bdata(bcm47xx_buttons_netgear_wnr834bv2);
arch/mips/bcm47xx/leds.c +9 -44

65 lines not on this page · raw message

Signature · 1 line
1.7.10.4