fix tab damage in 141-led_count.patch
SVN-Revision: 27254
This commit is contained in:
parent
3f0f8d9c87
commit
5a76c6bdd7
2 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@
|
||||||
- bcm63xx_led_data.num_leds = ARRAY_SIZE(board.leds);
|
- bcm63xx_led_data.num_leds = ARRAY_SIZE(board.leds);
|
||||||
+ /* count number of LEDs defined by this device */
|
+ /* count number of LEDs defined by this device */
|
||||||
+ while (led_count < ARRAY_SIZE(board.leds) && board.leds[led_count].name)
|
+ while (led_count < ARRAY_SIZE(board.leds) && board.leds[led_count].name)
|
||||||
+ led_count++;
|
+ led_count++;
|
||||||
+
|
+
|
||||||
+ bcm63xx_led_data.num_leds = led_count;
|
+ bcm63xx_led_data.num_leds = led_count;
|
||||||
bcm63xx_led_data.leds = board.leds;
|
bcm63xx_led_data.leds = board.leds;
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
- bcm63xx_led_data.num_leds = ARRAY_SIZE(board.leds);
|
- bcm63xx_led_data.num_leds = ARRAY_SIZE(board.leds);
|
||||||
+ /* count number of LEDs defined by this device */
|
+ /* count number of LEDs defined by this device */
|
||||||
+ while (led_count < ARRAY_SIZE(board.leds) && board.leds[led_count].name)
|
+ while (led_count < ARRAY_SIZE(board.leds) && board.leds[led_count].name)
|
||||||
+ led_count++;
|
+ led_count++;
|
||||||
+
|
+
|
||||||
+ bcm63xx_led_data.num_leds = led_count;
|
+ bcm63xx_led_data.num_leds = led_count;
|
||||||
bcm63xx_led_data.leds = board.leds;
|
bcm63xx_led_data.leds = board.leds;
|
||||||
|
|
Loading…
Reference in a new issue