Skip to content

Commit eea175e

Browse files
ffainellitsbogend
authored andcommitted
MIPS: BCM47XX: Define Linksys WRT310N V2 buttons
Update the buttons registration code to register the two buttons (WPS, system rester) using the existing BCM47XX_BOARD_LINKSYS_WRT310NV2 board entry. Signed-off-by: Florian Fainelli <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent f1da418 commit eea175e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

arch/mips/bcm47xx/buttons.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,12 @@ bcm47xx_buttons_linksys_wrt310nv1[] __initconst = {
276276
BCM47XX_GPIO_KEY(8, KEY_UNKNOWN),
277277
};
278278

279+
static const struct gpio_keys_button
280+
bcm47xx_buttons_linksys_wrt310n_v2[] __initconst = {
281+
BCM47XX_GPIO_KEY(5, KEY_WPS_BUTTON),
282+
BCM47XX_GPIO_KEY(6, KEY_RESTART),
283+
};
284+
279285
static const struct gpio_keys_button
280286
bcm47xx_buttons_linksys_wrt54g3gv2[] __initconst = {
281287
BCM47XX_GPIO_KEY(5, KEY_WIMAX),
@@ -608,6 +614,9 @@ int __init bcm47xx_buttons_register(void)
608614
case BCM47XX_BOARD_LINKSYS_WRT310NV1:
609615
err = bcm47xx_copy_bdata(bcm47xx_buttons_linksys_wrt310nv1);
610616
break;
617+
case BCM47XX_BOARD_LINKSYS_WRT310NV2:
618+
err = bcm47xx_copy_bdata(bcm47xx_buttons_linksys_wrt310n_v2);
619+
break;
611620
case BCM47XX_BOARD_LINKSYS_WRT54G3GV2:
612621
err = bcm47xx_copy_bdata(bcm47xx_buttons_linksys_wrt54g3gv2);
613622
break;

0 commit comments

Comments
 (0)