rename reset_buttons to buttons
authorRaphaël Huck <rhk@cksum.org>
Thu, 29 Apr 2010 12:54:24 +0000 (12:54 +0000)
committerRaphaël Huck <rhk@cksum.org>
Thu, 29 Apr 2010 12:54:24 +0000 (12:54 +0000)
SVN-Revision: 21255

target/linux/brcm63xx/patches-2.6.32/100-reset_buttons.patch
target/linux/brcm63xx/patches-2.6.32/140-new_bcm96348gw_leds.patch
target/linux/brcm63xx/patches-2.6.32/150-alice_gate2_leds.patch
target/linux/brcm63xx/patches-2.6.32/200-extended-platform-devices.patch
target/linux/brcm63xx/patches-2.6.32/221-board-NB4.patch
target/linux/brcm63xx/patches-2.6.33/100-reset_buttons.patch
target/linux/brcm63xx/patches-2.6.33/140-new_bcm96348gw_leds.patch
target/linux/brcm63xx/patches-2.6.33/150-alice_gate2_leds.patch
target/linux/brcm63xx/patches-2.6.33/200-extended-platform-devices.patch
target/linux/brcm63xx/patches-2.6.33/221-board-NB4.patch

index 45f506bb75415bcf2d45c1d01b170f9bd5318a57..d96ab7a03bd55f45f899ca2433fa05c573e45deb 100644 (file)
@@ -13,7 +13,7 @@
                        .active_low     = 1,
                },
        },
-+      .reset_buttons = {
++      .buttons = {
 +              {
 +                      .desc           = "reset",
 +                      .gpio           = 32,
@@ -30,7 +30,7 @@
                        .active_low     = 1,
                },
        },
-+      .reset_buttons = {
++      .buttons = {
 +              {
 +                      .desc           = "reset",
 +                      .gpio           = 36,
        platform_device_register(&bcm63xx_gpio_leds);
  
 +      /* count number of BUTTONs defined by this device */
-+      while (button_count < ARRAY_SIZE(board.reset_buttons) && board.reset_buttons[button_count].desc)
++      while (button_count < ARRAY_SIZE(board.buttons) && board.buttons[button_count].desc)
 +              button_count++;
 +
 +      if (button_count) {
 +              bcm63xx_gpio_buttons_data.nbuttons = button_count;
-+              bcm63xx_gpio_buttons_data.buttons = board.reset_buttons;
++              bcm63xx_gpio_buttons_data.buttons = board.buttons;
 +
 +              platform_device_register(&bcm63xx_gpio_buttons_device);
 +      }
@@ -92,8 +92,8 @@
        /* GPIO LEDs */
        struct gpio_led leds[5];
 +
-+      /* Reset button */
-+      struct gpio_button reset_buttons[2];
++      /* Buttons */
++      struct gpio_button buttons[2];
  };
  
  #endif /* ! BOARD_BCM963XX_H_ */
index d9dba14932f7819a00ccaa9fa7236104e699e48c..b4d948afb7ee28b3bfaf45efd30bf3b660d2e781 100644 (file)
@@ -78,5 +78,5 @@
 -      struct gpio_led leds[5];
 +      struct gpio_led leds[8];
  
-       /* Reset button */
-       struct gpio_button reset_buttons[1];
+       /* Buttons */
+       struct gpio_button buttons[1];
index 7b3f9ff5a97b1c4a5fbcd9478d58dcd6ec3e862c..e464384d510bdd030d6729dc1d919a2eed6e7d61 100644 (file)
@@ -50,7 +50,7 @@
 +              },
 +      },
 +
-+      .reset_buttons = {
++      .buttons = {
 +              {
 +                      .desc           = "sw2",
 +                      .gpio           = 37,
index aec85a3d172209655a1aa49dec12507e78dc9265..c6425091ca18117acc41a592b1a56d7ff4d4f3d0 100644 (file)
@@ -15,8 +15,8 @@
 +++ b/arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h
 @@ -59,6 +59,10 @@ struct board_info {
  
-       /* Reset button */
-       struct gpio_button reset_buttons[2];
+       /* Buttons */
+       struct gpio_button buttons[2];
 +
 +      /* Additional platform devices */
 +      struct platform_device **devs;
index bbd0c62e70b74c660dd38a675b4b38e0b69f7bd4..7c17b887d2b22261f5c9f88010576264c9010eef 100644 (file)
 +                      .active_low     = 1,
 +              },
 +      },
-+      .reset_buttons = {
++      .buttons = {
 +              {
 +                      .desc           = "reset",
 +                      .gpio           = 34,
 +                      .active_low     = 1,
 +              },
 +      },
-+      .reset_buttons = {
++      .buttons = {
 +              {
 +                      .desc           = "reset",
 +                      .gpio           = 34,
 +                      .active_low     = 1,
 +              },
 +      },
-+      .reset_buttons = {
++      .buttons = {
 +              {
 +                      .desc           = "reset",
 +                      .gpio           = 34,
 +                      .gpio           = 4,
 +              },
 +      },
-+      .reset_buttons = {
++      .buttons = {
 +              {
 +                      .desc           = "reset",
 +                      .gpio           = 34,
 +                      .gpio           = 4,
 +              },
 +      },
-+      .reset_buttons = {
++      .buttons = {
 +              {
 +                      .desc           = "reset",
 +                      .gpio           = 34,
 -      struct gpio_led leds[8];
 +      struct gpio_led leds[9];
  
-       /* Reset button */
-       struct gpio_button reset_buttons[2];
+       /* Buttons */
+       struct gpio_button buttons[2];
index aa5264d8459d023d4056d8a601ca41210bdf3681..6b72ca22a3b8c83b5c1185f05c8c931489ecf71d 100644 (file)
@@ -13,7 +13,7 @@
                        .active_low     = 1,
                },
        },
-+      .reset_buttons = {
++      .buttons = {
 +              {
 +                      .desc           = "reset",
 +                      .gpio           = 32,
@@ -30,7 +30,7 @@
                        .active_low     = 1,
                },
        },
-+      .reset_buttons = {
++      .buttons = {
 +              {
 +                      .desc           = "reset",
 +                      .gpio           = 36,
        platform_device_register(&bcm63xx_gpio_leds);
  
 +      /* count number of BUTTONs defined by this device */
-+      while (button_count < ARRAY_SIZE(board.reset_buttons) && board.reset_buttons[button_count].desc)
++      while (button_count < ARRAY_SIZE(board.buttons) && board.buttons[button_count].desc)
 +              button_count++;
 +
 +      if (button_count) {
 +              bcm63xx_gpio_buttons_data.nbuttons = button_count;
-+              bcm63xx_gpio_buttons_data.buttons = board.reset_buttons;
++              bcm63xx_gpio_buttons_data.buttons = board.buttons;
 +
 +              platform_device_register(&bcm63xx_gpio_buttons_device);
 +      }
@@ -92,8 +92,8 @@
        /* GPIO LEDs */
        struct gpio_led leds[5];
 +
-+      /* Reset button */
-+      struct gpio_button reset_buttons[2];
++      /* Buttons */
++      struct gpio_button buttons[2];
  };
  
  #endif /* ! BOARD_BCM963XX_H_ */
index 292f196ac6b618084365fdb6177bcdb98701965d..edf00b90bb844e03b5883681190998b29373874c 100644 (file)
@@ -78,5 +78,5 @@
 -      struct gpio_led leds[5];
 +      struct gpio_led leds[8];
  
-       /* Reset button */
-       struct gpio_button reset_buttons[1];
+       /* Buttons */
+       struct gpio_button buttons[1];
index 8e53a60e4b30fabbf2eaafbd6cba0f8fb8caf309..1eb5d2b301b5f083215328f336c487ff5bd032d9 100644 (file)
@@ -50,7 +50,7 @@
 +              },
 +      },
 +
-+      .reset_buttons = {
++      .buttons = {
 +              {
 +                      .desc           = "sw2",
 +                      .gpio           = 37,
index aec85a3d172209655a1aa49dec12507e78dc9265..c6425091ca18117acc41a592b1a56d7ff4d4f3d0 100644 (file)
@@ -15,8 +15,8 @@
 +++ b/arch/mips/include/asm/mach-bcm63xx/board_bcm963xx.h
 @@ -59,6 +59,10 @@ struct board_info {
  
-       /* Reset button */
-       struct gpio_button reset_buttons[2];
+       /* Buttons */
+       struct gpio_button buttons[2];
 +
 +      /* Additional platform devices */
 +      struct platform_device **devs;
index bbd0c62e70b74c660dd38a675b4b38e0b69f7bd4..7c17b887d2b22261f5c9f88010576264c9010eef 100644 (file)
 +                      .active_low     = 1,
 +              },
 +      },
-+      .reset_buttons = {
++      .buttons = {
 +              {
 +                      .desc           = "reset",
 +                      .gpio           = 34,
 +                      .active_low     = 1,
 +              },
 +      },
-+      .reset_buttons = {
++      .buttons = {
 +              {
 +                      .desc           = "reset",
 +                      .gpio           = 34,
 +                      .active_low     = 1,
 +              },
 +      },
-+      .reset_buttons = {
++      .buttons = {
 +              {
 +                      .desc           = "reset",
 +                      .gpio           = 34,
 +                      .gpio           = 4,
 +              },
 +      },
-+      .reset_buttons = {
++      .buttons = {
 +              {
 +                      .desc           = "reset",
 +                      .gpio           = 34,
 +                      .gpio           = 4,
 +              },
 +      },
-+      .reset_buttons = {
++      .buttons = {
 +              {
 +                      .desc           = "reset",
 +                      .gpio           = 34,
 -      struct gpio_led leds[8];
 +      struct gpio_led leds[9];
  
-       /* Reset button */
-       struct gpio_button reset_buttons[2];
+       /* Buttons */
+       struct gpio_button buttons[2];