From: Florian Fainelli Date: Tue, 21 Jun 2011 20:52:58 +0000 (+0000) Subject: fix tab damage in 141-led_count.patch X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5a76c6bdd79800da721267a8747cac89766408da;p=lede.git fix tab damage in 141-led_count.patch SVN-Revision: 27254 --- diff --git a/target/linux/brcm63xx/patches-2.6.39/141-led_count.patch b/target/linux/brcm63xx/patches-2.6.39/141-led_count.patch index baf092053d..e0fa19808a 100644 --- a/target/linux/brcm63xx/patches-2.6.39/141-led_count.patch +++ b/target/linux/brcm63xx/patches-2.6.39/141-led_count.patch @@ -15,7 +15,7 @@ - bcm63xx_led_data.num_leds = ARRAY_SIZE(board.leds); + /* count number of LEDs defined by this device */ + 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.leds = board.leds; diff --git a/target/linux/brcm63xx/patches-3.0/141-led_count.patch b/target/linux/brcm63xx/patches-3.0/141-led_count.patch index 582f868760..c9adbb2685 100644 --- a/target/linux/brcm63xx/patches-3.0/141-led_count.patch +++ b/target/linux/brcm63xx/patches-3.0/141-led_count.patch @@ -15,7 +15,7 @@ - bcm63xx_led_data.num_leds = ARRAY_SIZE(board.leds); + /* count number of LEDs defined by this device */ + 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.leds = board.leds;