[brcm63xx] use a define for the poll and debounce interval
[openwrt/svn-archive/archive.git] / target / linux / brcm63xx / patches-3.3 / 510-board_spw303v.patch
index 2002ab4f4bbc3d8285d326fa06d349747e078a79..e6215cbc947b0e8165a25100331b37b0d95080fa 100644 (file)
@@ -1,6 +1,6 @@
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
 --- a/arch/mips/bcm63xx/boards/board_bcm963xx.c
 +++ b/arch/mips/bcm63xx/boards/board_bcm963xx.c
-@@ -1689,6 +1689,72 @@ static struct board_info __initdata boar
+@@ -1692,6 +1692,72 @@ static struct board_info __initdata boar
                },
        },
  };
                },
        },
  };
@@ -58,7 +58,7 @@
 +                      .gpio           = 11,
 +                      .type           = EV_KEY,
 +                      .code           = KEY_RESTART,
 +                      .gpio           = 11,
 +                      .type           = EV_KEY,
 +                      .code           = KEY_RESTART,
-+                      .debounce_interval = 60,
++                      .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
 +              },
 +              {
 +                      .desc           = "ses",
 +              },
 +              {
 +                      .desc           = "ses",
 +                      .active_low     = 1,
 +                      .type           = EV_KEY,
 +                      .code           = KEY_WPS_BUTTON,
 +                      .active_low     = 1,
 +                      .type           = EV_KEY,
 +                      .code           = KEY_WPS_BUTTON,
-+                      .debounce_interval = 60,
++                      .debounce_interval = BCM963XX_KEYS_DEBOUNCE_INTERVAL,
 +              },
 +      }
 +};
  #endif
  
  /*
 +              },
 +      }
 +};
  #endif
  
  /*
-@@ -1733,6 +1799,7 @@ static const struct board_info __initdat
+@@ -1736,6 +1802,7 @@ static const struct board_info __initdat
        &board_nb4_fxc_r1,
        &board_nb4_fxc_r2,
        &board_HW553,
        &board_nb4_fxc_r1,
        &board_nb4_fxc_r2,
        &board_HW553,