1 #include "bcm47xx_private.h"
3 #include <linux/input.h>
4 #include <linux/gpio_keys.h>
5 #include <linux/interrupt.h>
6 #include <bcm47xx_board.h>
9 /**************************************************
11 **************************************************/
13 #define BCM47XX_GPIO_KEY(_gpio, _code) \
22 static const struct gpio_keys_button
23 bcm47xx_buttons_asus_rtn12
[] __initconst
= {
24 BCM47XX_GPIO_KEY(0, KEY_WPS_BUTTON
),
25 BCM47XX_GPIO_KEY(1, KEY_RESTART
),
26 BCM47XX_GPIO_KEY(4, BTN_0
), /* Router mode */
27 BCM47XX_GPIO_KEY(5, BTN_1
), /* Repeater mode */
28 BCM47XX_GPIO_KEY(6, BTN_2
), /* AP mode */
31 static const struct gpio_keys_button
32 bcm47xx_buttons_asus_rtn16
[] __initconst
= {
33 BCM47XX_GPIO_KEY(6, KEY_WPS_BUTTON
),
34 BCM47XX_GPIO_KEY(8, KEY_RESTART
),
37 static const struct gpio_keys_button
38 bcm47xx_buttons_asus_rtn66u
[] __initconst
= {
39 BCM47XX_GPIO_KEY(4, KEY_WPS_BUTTON
),
40 BCM47XX_GPIO_KEY(9, KEY_RESTART
),
43 static const struct gpio_keys_button
44 bcm47xx_buttons_asus_wl300g
[] __initconst
= {
45 BCM47XX_GPIO_KEY(6, KEY_RESTART
),
48 static const struct gpio_keys_button
49 bcm47xx_buttons_asus_wl320ge
[] __initconst
= {
50 BCM47XX_GPIO_KEY(6, KEY_RESTART
),
53 static const struct gpio_keys_button
54 bcm47xx_buttons_asus_wl330ge
[] __initconst
= {
55 BCM47XX_GPIO_KEY(2, KEY_RESTART
),
58 static const struct gpio_keys_button
59 bcm47xx_buttons_asus_wl500g
[] __initconst
= {
60 BCM47XX_GPIO_KEY(6, KEY_RESTART
),
63 static const struct gpio_keys_button
64 bcm47xx_buttons_asus_wl500gd
[] __initconst
= {
65 BCM47XX_GPIO_KEY(6, KEY_RESTART
),
68 static const struct gpio_keys_button
69 bcm47xx_buttons_asus_wl500gpv1
[] __initconst
= {
70 BCM47XX_GPIO_KEY(0, KEY_RESTART
),
71 BCM47XX_GPIO_KEY(4, KEY_WPS_BUTTON
),
74 static const struct gpio_keys_button
75 bcm47xx_buttons_asus_wl500gpv2
[] __initconst
= {
76 BCM47XX_GPIO_KEY(2, KEY_RESTART
),
77 BCM47XX_GPIO_KEY(3, KEY_WPS_BUTTON
),
80 static const struct gpio_keys_button
81 bcm47xx_buttons_asus_wl500w
[] __initconst
= {
82 BCM47XX_GPIO_KEY(6, KEY_RESTART
),
83 BCM47XX_GPIO_KEY(7, KEY_WPS_BUTTON
),
86 static const struct gpio_keys_button
87 bcm47xx_buttons_asus_wl520gc
[] __initconst
= {
88 BCM47XX_GPIO_KEY(2, KEY_RESTART
),
89 BCM47XX_GPIO_KEY(3, KEY_WPS_BUTTON
),
92 static const struct gpio_keys_button
93 bcm47xx_buttons_asus_wl520gu
[] __initconst
= {
94 BCM47XX_GPIO_KEY(2, KEY_RESTART
),
95 BCM47XX_GPIO_KEY(3, KEY_WPS_BUTTON
),
98 static const struct gpio_keys_button
99 bcm47xx_buttons_asus_wl700ge
[] __initconst
= {
100 BCM47XX_GPIO_KEY(0, KEY_POWER
), /* Hard disk power switch */
101 BCM47XX_GPIO_KEY(4, KEY_WPS_BUTTON
), /* EZSetup */
102 BCM47XX_GPIO_KEY(6, KEY_COPY
), /* Copy data from USB to internal disk */
103 BCM47XX_GPIO_KEY(7, KEY_RESTART
), /* Hard reset */
106 static const struct gpio_keys_button
107 bcm47xx_buttons_asus_wlhdd
[] __initconst
= {
108 BCM47XX_GPIO_KEY(6, KEY_RESTART
),
113 static const struct gpio_keys_button
114 bcm47xx_buttons_huawei_e970
[] __initconst
= {
115 BCM47XX_GPIO_KEY(6, KEY_RESTART
),
120 static const struct gpio_keys_button
121 bcm47xx_buttons_belkin_f7d4301
[] __initconst
= {
122 BCM47XX_GPIO_KEY(6, KEY_RESTART
),
123 BCM47XX_GPIO_KEY(8, KEY_WPS_BUTTON
),
128 static const struct gpio_keys_button
129 bcm47xx_buttons_buffalo_whr2_a54g54
[] __initconst
= {
130 BCM47XX_GPIO_KEY(4, KEY_RESTART
),
133 static const struct gpio_keys_button
134 bcm47xx_buttons_buffalo_whr_g125
[] __initconst
= {
135 BCM47XX_GPIO_KEY(0, KEY_WPS_BUTTON
),
136 BCM47XX_GPIO_KEY(4, KEY_RESTART
),
137 BCM47XX_GPIO_KEY(5, BTN_0
), /* Router / AP mode swtich */
140 static const struct gpio_keys_button
141 bcm47xx_buttons_buffalo_whr_g54s
[] __initconst
= {
142 BCM47XX_GPIO_KEY(0, KEY_WPS_BUTTON
),
143 BCM47XX_GPIO_KEY(4, KEY_RESTART
),
144 BCM47XX_GPIO_KEY(5, BTN_0
), /* Router / AP mode swtich */
147 static const struct gpio_keys_button
148 bcm47xx_buttons_buffalo_whr_hp_g54
[] __initconst
= {
149 BCM47XX_GPIO_KEY(0, KEY_WPS_BUTTON
),
150 BCM47XX_GPIO_KEY(4, KEY_RESTART
),
151 BCM47XX_GPIO_KEY(5, BTN_0
), /* Router / AP mode swtich */
154 static const struct gpio_keys_button
155 bcm47xx_buttons_buffalo_wzr_g300n
[] __initconst
= {
156 BCM47XX_GPIO_KEY(4, KEY_RESTART
),
159 static const struct gpio_keys_button
160 bcm47xx_buttons_buffalo_wzr_rs_g54
[] __initconst
= {
161 BCM47XX_GPIO_KEY(0, KEY_WPS_BUTTON
),
162 BCM47XX_GPIO_KEY(4, KEY_RESTART
),
165 static const struct gpio_keys_button
166 bcm47xx_buttons_buffalo_wzr_rs_g54hp
[] __initconst
= {
167 BCM47XX_GPIO_KEY(0, KEY_WPS_BUTTON
),
168 BCM47XX_GPIO_KEY(4, KEY_RESTART
),
173 static const struct gpio_keys_button
174 bcm47xx_buttons_dell_tm2300
[] __initconst
= {
175 BCM47XX_GPIO_KEY(0, KEY_RESTART
),
180 static const struct gpio_keys_button
181 bcm47xx_buttons_dlink_dir130
[] __initconst
= {
182 BCM47XX_GPIO_KEY(3, KEY_RESTART
),
183 BCM47XX_GPIO_KEY(7, KEY_UNKNOWN
),
186 static const struct gpio_keys_button
187 bcm47xx_buttons_dlink_dir330
[] __initconst
= {
188 BCM47XX_GPIO_KEY(3, KEY_RESTART
),
189 BCM47XX_GPIO_KEY(7, KEY_UNKNOWN
),
194 static const struct gpio_keys_button
195 bcm47xx_buttons_linksys_e1000v1
[] __initconst
= {
196 BCM47XX_GPIO_KEY(5, KEY_WPS_BUTTON
),
197 BCM47XX_GPIO_KEY(6, KEY_RESTART
),
200 static const struct gpio_keys_button
201 bcm47xx_buttons_linksys_e1000v21
[] __initconst
= {
202 BCM47XX_GPIO_KEY(9, KEY_WPS_BUTTON
),
203 BCM47XX_GPIO_KEY(10, KEY_RESTART
),
206 static const struct gpio_keys_button
207 bcm47xx_buttons_linksys_e2000v1
[] __initconst
= {
208 BCM47XX_GPIO_KEY(5, KEY_WPS_BUTTON
),
209 BCM47XX_GPIO_KEY(8, KEY_RESTART
),
212 static const struct gpio_keys_button
213 bcm47xx_buttons_linksys_e3000v1
[] __initconst
= {
214 BCM47XX_GPIO_KEY(4, KEY_WPS_BUTTON
),
215 BCM47XX_GPIO_KEY(6, KEY_RESTART
),
218 static const struct gpio_keys_button
219 bcm47xx_buttons_linksys_e3200v1
[] __initconst
= {
220 BCM47XX_GPIO_KEY(5, KEY_RESTART
),
221 BCM47XX_GPIO_KEY(8, KEY_WPS_BUTTON
),
224 static const struct gpio_keys_button
225 bcm47xx_buttons_linksys_e4200v1
[] __initconst
= {
226 BCM47XX_GPIO_KEY(4, KEY_WPS_BUTTON
),
227 BCM47XX_GPIO_KEY(6, KEY_RESTART
),
230 static const struct gpio_keys_button
231 bcm47xx_buttons_linksys_wrt150nv1
[] __initconst
= {
232 BCM47XX_GPIO_KEY(4, KEY_WPS_BUTTON
),
233 BCM47XX_GPIO_KEY(6, KEY_RESTART
),
236 static const struct gpio_keys_button
237 bcm47xx_buttons_linksys_wrt150nv11
[] __initconst
= {
238 BCM47XX_GPIO_KEY(4, KEY_WPS_BUTTON
),
239 BCM47XX_GPIO_KEY(6, KEY_RESTART
),
242 static const struct gpio_keys_button
243 bcm47xx_buttons_linksys_wrt160nv1
[] __initconst
= {
244 BCM47XX_GPIO_KEY(4, KEY_WPS_BUTTON
),
245 BCM47XX_GPIO_KEY(6, KEY_RESTART
),
248 static const struct gpio_keys_button
249 bcm47xx_buttons_linksys_wrt160nv3
[] __initconst
= {
250 BCM47XX_GPIO_KEY(5, KEY_WPS_BUTTON
),
251 BCM47XX_GPIO_KEY(6, KEY_RESTART
),
254 static const struct gpio_keys_button
255 bcm47xx_buttons_linksys_wrt300nv11
[] __initconst
= {
256 BCM47XX_GPIO_KEY(4, KEY_UNKNOWN
),
257 BCM47XX_GPIO_KEY(6, KEY_RESTART
),
260 static const struct gpio_keys_button
261 bcm47xx_buttons_linksys_wrt310nv1
[] __initconst
= {
262 BCM47XX_GPIO_KEY(6, KEY_RESTART
),
263 BCM47XX_GPIO_KEY(8, KEY_UNKNOWN
),
266 static const struct gpio_keys_button
267 bcm47xx_buttons_linksys_wrt54g3gv2
[] __initconst
= {
268 BCM47XX_GPIO_KEY(5, KEY_WIMAX
),
269 BCM47XX_GPIO_KEY(6, KEY_RESTART
),
272 static const struct gpio_keys_button
273 bcm47xx_buttons_linksys_wrt54g_generic
[] __initconst
= {
274 BCM47XX_GPIO_KEY(4, KEY_WPS_BUTTON
),
275 BCM47XX_GPIO_KEY(6, KEY_RESTART
),
278 static const struct gpio_keys_button
279 bcm47xx_buttons_linksys_wrt610nv1
[] __initconst
= {
280 BCM47XX_GPIO_KEY(6, KEY_RESTART
),
281 BCM47XX_GPIO_KEY(8, KEY_WPS_BUTTON
),
284 static const struct gpio_keys_button
285 bcm47xx_buttons_linksys_wrt610nv2
[] __initconst
= {
286 BCM47XX_GPIO_KEY(4, KEY_WPS_BUTTON
),
287 BCM47XX_GPIO_KEY(6, KEY_RESTART
),
290 static const struct gpio_keys_button
291 bcm47xx_buttons_linksys_wrtsl54gs
[] __initconst
= {
292 BCM47XX_GPIO_KEY(4, KEY_WPS_BUTTON
),
293 BCM47XX_GPIO_KEY(6, KEY_RESTART
),
298 static const struct gpio_keys_button
299 bcm47xx_buttons_microsoft_nm700
[] __initconst
= {
300 BCM47XX_GPIO_KEY(7, KEY_RESTART
),
305 static const struct gpio_keys_button
306 bcm47xx_buttons_motorola_we800g
[] __initconst
= {
307 BCM47XX_GPIO_KEY(0, KEY_RESTART
),
310 static const struct gpio_keys_button
311 bcm47xx_buttons_motorola_wr850gp
[] __initconst
= {
312 BCM47XX_GPIO_KEY(5, KEY_RESTART
),
315 static const struct gpio_keys_button
316 bcm47xx_buttons_motorola_wr850gv2v3
[] __initconst
= {
317 BCM47XX_GPIO_KEY(5, KEY_RESTART
),
322 static const struct gpio_keys_button
323 bcm47xx_buttons_netgear_wndr3400v1
[] __initconst
= {
324 BCM47XX_GPIO_KEY(4, KEY_RESTART
),
325 BCM47XX_GPIO_KEY(6, KEY_WPS_BUTTON
),
326 BCM47XX_GPIO_KEY(8, KEY_RFKILL
),
329 static const struct gpio_keys_button
330 bcm47xx_buttons_netgear_wndr3700v3
[] __initconst
= {
331 BCM47XX_GPIO_KEY(2, KEY_RFKILL
),
332 BCM47XX_GPIO_KEY(3, KEY_RESTART
),
333 BCM47XX_GPIO_KEY(4, KEY_WPS_BUTTON
),
336 static const struct gpio_keys_button
337 bcm47xx_buttons_netgear_wndr4500v1
[] __initconst
= {
338 BCM47XX_GPIO_KEY(4, KEY_WPS_BUTTON
),
339 BCM47XX_GPIO_KEY(5, KEY_RFKILL
),
340 BCM47XX_GPIO_KEY(6, KEY_RESTART
),
343 static const struct gpio_keys_button
344 bcm47xx_buttons_netgear_wnr3500lv1
[] __initconst
= {
345 BCM47XX_GPIO_KEY(4, KEY_RESTART
),
346 BCM47XX_GPIO_KEY(6, KEY_WPS_BUTTON
),
349 static const struct gpio_keys_button
350 bcm47xx_buttons_netgear_wnr834bv2
[] __initconst
= {
351 BCM47XX_GPIO_KEY(6, KEY_RESTART
),
356 static const struct gpio_keys_button
357 bcm47xx_buttons_simpletech_simpleshare
[] __initconst
= {
358 BCM47XX_GPIO_KEY(0, KEY_RESTART
),
361 /**************************************************
363 **************************************************/
365 static struct gpio_keys_platform_data bcm47xx_button_pdata
;
367 static struct platform_device bcm47xx_buttons_gpio_keys
= {
370 .platform_data
= &bcm47xx_button_pdata
,
374 /* Copy data from __initconst */
375 static int __init
bcm47xx_buttons_copy(const struct gpio_keys_button
*buttons
,
378 size_t size
= nbuttons
* sizeof(*buttons
);
380 bcm47xx_button_pdata
.buttons
= kmalloc(size
, GFP_KERNEL
);
381 if (!bcm47xx_button_pdata
.buttons
)
383 memcpy(bcm47xx_button_pdata
.buttons
, buttons
, size
);
384 bcm47xx_button_pdata
.nbuttons
= nbuttons
;
389 #define bcm47xx_copy_bdata(dev_buttons) \
390 bcm47xx_buttons_copy(dev_buttons, ARRAY_SIZE(dev_buttons));
392 int __init
bcm47xx_buttons_register(void)
394 enum bcm47xx_board board
= bcm47xx_board_get();
398 case BCM47XX_BOARD_ASUS_RTN12
:
399 err
= bcm47xx_copy_bdata(bcm47xx_buttons_asus_rtn12
);
401 case BCM47XX_BOARD_ASUS_RTN16
:
402 err
= bcm47xx_copy_bdata(bcm47xx_buttons_asus_rtn16
);
404 case BCM47XX_BOARD_ASUS_RTN66U
:
405 err
= bcm47xx_copy_bdata(bcm47xx_buttons_asus_rtn66u
);
407 case BCM47XX_BOARD_ASUS_WL300G
:
408 err
= bcm47xx_copy_bdata(bcm47xx_buttons_asus_wl300g
);
410 case BCM47XX_BOARD_ASUS_WL320GE
:
411 err
= bcm47xx_copy_bdata(bcm47xx_buttons_asus_wl320ge
);
413 case BCM47XX_BOARD_ASUS_WL330GE
:
414 err
= bcm47xx_copy_bdata(bcm47xx_buttons_asus_wl330ge
);
416 case BCM47XX_BOARD_ASUS_WL500G
:
417 err
= bcm47xx_copy_bdata(bcm47xx_buttons_asus_wl500g
);
419 case BCM47XX_BOARD_ASUS_WL500GD
:
420 err
= bcm47xx_copy_bdata(bcm47xx_buttons_asus_wl500gd
);
422 case BCM47XX_BOARD_ASUS_WL500GPV1
:
423 err
= bcm47xx_copy_bdata(bcm47xx_buttons_asus_wl500gpv1
);
425 case BCM47XX_BOARD_ASUS_WL500GPV2
:
426 err
= bcm47xx_copy_bdata(bcm47xx_buttons_asus_wl500gpv2
);
428 case BCM47XX_BOARD_ASUS_WL500W
:
429 err
= bcm47xx_copy_bdata(bcm47xx_buttons_asus_wl500w
);
431 case BCM47XX_BOARD_ASUS_WL520GC
:
432 err
= bcm47xx_copy_bdata(bcm47xx_buttons_asus_wl520gc
);
434 case BCM47XX_BOARD_ASUS_WL520GU
:
435 err
= bcm47xx_copy_bdata(bcm47xx_buttons_asus_wl520gu
);
437 case BCM47XX_BOARD_ASUS_WL700GE
:
438 err
= bcm47xx_copy_bdata(bcm47xx_buttons_asus_wl700ge
);
440 case BCM47XX_BOARD_ASUS_WLHDD
:
441 err
= bcm47xx_copy_bdata(bcm47xx_buttons_asus_wlhdd
);
444 case BCM47XX_BOARD_BELKIN_F7D3301
:
445 case BCM47XX_BOARD_BELKIN_F7D3302
:
446 case BCM47XX_BOARD_BELKIN_F7D4301
:
447 case BCM47XX_BOARD_BELKIN_F7D4302
:
448 case BCM47XX_BOARD_BELKIN_F7D4401
:
449 err
= bcm47xx_copy_bdata(bcm47xx_buttons_belkin_f7d4301
);
452 case BCM47XX_BOARD_BUFFALO_WHR2_A54G54
:
453 err
= bcm47xx_copy_bdata(bcm47xx_buttons_buffalo_whr2_a54g54
);
455 case BCM47XX_BOARD_BUFFALO_WHR_G125
:
456 err
= bcm47xx_copy_bdata(bcm47xx_buttons_buffalo_whr_g125
);
458 case BCM47XX_BOARD_BUFFALO_WHR_G54S
:
459 err
= bcm47xx_copy_bdata(bcm47xx_buttons_buffalo_whr_g54s
);
461 case BCM47XX_BOARD_BUFFALO_WHR_HP_G54
:
462 err
= bcm47xx_copy_bdata(bcm47xx_buttons_buffalo_whr_hp_g54
);
464 case BCM47XX_BOARD_BUFFALO_WZR_G300N
:
465 err
= bcm47xx_copy_bdata(bcm47xx_buttons_buffalo_wzr_g300n
);
467 case BCM47XX_BOARD_BUFFALO_WZR_RS_G54
:
468 err
= bcm47xx_copy_bdata(bcm47xx_buttons_buffalo_wzr_rs_g54
);
470 case BCM47XX_BOARD_BUFFALO_WZR_RS_G54HP
:
471 err
= bcm47xx_copy_bdata(bcm47xx_buttons_buffalo_wzr_rs_g54hp
);
474 case BCM47XX_BOARD_DELL_TM2300
:
475 err
= bcm47xx_copy_bdata(bcm47xx_buttons_dell_tm2300
);
478 case BCM47XX_BOARD_DLINK_DIR130
:
479 err
= bcm47xx_copy_bdata(bcm47xx_buttons_dlink_dir130
);
481 case BCM47XX_BOARD_DLINK_DIR330
:
482 err
= bcm47xx_copy_bdata(bcm47xx_buttons_dlink_dir330
);
485 case BCM47XX_BOARD_HUAWEI_E970
:
486 err
= bcm47xx_copy_bdata(bcm47xx_buttons_huawei_e970
);
489 case BCM47XX_BOARD_LINKSYS_E1000V1
:
490 err
= bcm47xx_copy_bdata(bcm47xx_buttons_linksys_e1000v1
);
492 case BCM47XX_BOARD_LINKSYS_E1000V21
:
493 err
= bcm47xx_copy_bdata(bcm47xx_buttons_linksys_e1000v21
);
495 case BCM47XX_BOARD_LINKSYS_E2000V1
:
496 err
= bcm47xx_copy_bdata(bcm47xx_buttons_linksys_e2000v1
);
498 case BCM47XX_BOARD_LINKSYS_E3000V1
:
499 err
= bcm47xx_copy_bdata(bcm47xx_buttons_linksys_e3000v1
);
501 case BCM47XX_BOARD_LINKSYS_E3200V1
:
502 err
= bcm47xx_copy_bdata(bcm47xx_buttons_linksys_e3200v1
);
504 case BCM47XX_BOARD_LINKSYS_E4200V1
:
505 err
= bcm47xx_copy_bdata(bcm47xx_buttons_linksys_e4200v1
);
507 case BCM47XX_BOARD_LINKSYS_WRT150NV1
:
508 err
= bcm47xx_copy_bdata(bcm47xx_buttons_linksys_wrt150nv1
);
510 case BCM47XX_BOARD_LINKSYS_WRT150NV11
:
511 err
= bcm47xx_copy_bdata(bcm47xx_buttons_linksys_wrt150nv11
);
513 case BCM47XX_BOARD_LINKSYS_WRT160NV1
:
514 err
= bcm47xx_copy_bdata(bcm47xx_buttons_linksys_wrt160nv1
);
516 case BCM47XX_BOARD_LINKSYS_WRT160NV3
:
517 err
= bcm47xx_copy_bdata(bcm47xx_buttons_linksys_wrt160nv3
);
519 case BCM47XX_BOARD_LINKSYS_WRT300NV11
:
520 err
= bcm47xx_copy_bdata(bcm47xx_buttons_linksys_wrt300nv11
);
522 case BCM47XX_BOARD_LINKSYS_WRT310NV1
:
523 err
= bcm47xx_copy_bdata(bcm47xx_buttons_linksys_wrt310nv1
);
525 case BCM47XX_BOARD_LINKSYS_WRT54G3GV2
:
526 err
= bcm47xx_copy_bdata(bcm47xx_buttons_linksys_wrt54g3gv2
);
528 case BCM47XX_BOARD_LINKSYS_WRT54G_TYPE_0101
:
529 case BCM47XX_BOARD_LINKSYS_WRT54G_TYPE_0467
:
530 case BCM47XX_BOARD_LINKSYS_WRT54G_TYPE_0708
:
531 err
= bcm47xx_copy_bdata(bcm47xx_buttons_linksys_wrt54g_generic
);
533 case BCM47XX_BOARD_LINKSYS_WRT610NV1
:
534 err
= bcm47xx_copy_bdata(bcm47xx_buttons_linksys_wrt610nv1
);
536 case BCM47XX_BOARD_LINKSYS_WRT610NV2
:
537 err
= bcm47xx_copy_bdata(bcm47xx_buttons_linksys_wrt610nv2
);
539 case BCM47XX_BOARD_LINKSYS_WRTSL54GS
:
540 err
= bcm47xx_copy_bdata(bcm47xx_buttons_linksys_wrtsl54gs
);
543 case BCM47XX_BOARD_MICROSOFT_MN700
:
544 err
= bcm47xx_copy_bdata(bcm47xx_buttons_microsoft_nm700
);
547 case BCM47XX_BOARD_MOTOROLA_WE800G
:
548 err
= bcm47xx_copy_bdata(bcm47xx_buttons_motorola_we800g
);
550 case BCM47XX_BOARD_MOTOROLA_WR850GP
:
551 err
= bcm47xx_copy_bdata(bcm47xx_buttons_motorola_wr850gp
);
553 case BCM47XX_BOARD_MOTOROLA_WR850GV2V3
:
554 err
= bcm47xx_copy_bdata(bcm47xx_buttons_motorola_wr850gv2v3
);
557 case BCM47XX_BOARD_NETGEAR_WNDR3400V1
:
558 err
= bcm47xx_copy_bdata(bcm47xx_buttons_netgear_wndr3400v1
);
560 case BCM47XX_BOARD_NETGEAR_WNDR3700V3
:
561 err
= bcm47xx_copy_bdata(bcm47xx_buttons_netgear_wndr3700v3
);
563 case BCM47XX_BOARD_NETGEAR_WNDR4500V1
:
564 err
= bcm47xx_copy_bdata(bcm47xx_buttons_netgear_wndr4500v1
);
566 case BCM47XX_BOARD_NETGEAR_WNR3500L
:
567 err
= bcm47xx_copy_bdata(bcm47xx_buttons_netgear_wnr3500lv1
);
569 case BCM47XX_BOARD_NETGEAR_WNR834BV2
:
570 err
= bcm47xx_copy_bdata(bcm47xx_buttons_netgear_wnr834bv2
);
573 case BCM47XX_BOARD_SIMPLETECH_SIMPLESHARE
:
574 err
= bcm47xx_copy_bdata(bcm47xx_buttons_simpletech_simpleshare
);
578 pr_debug("No buttons configuration found for this device\n");
585 err
= platform_device_register(&bcm47xx_buttons_gpio_keys
);
587 pr_err("Failed to register platform device: %d\n", err
);