diff options
author | Florian Fainelli <florian@openwrt.org> | 2011-06-21 20:52:58 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2011-06-21 20:52:58 +0000 |
commit | 5a76c6bdd79800da721267a8747cac89766408da (patch) | |
tree | af4e494c6b7f639ac71bb2362a594bfba98fee9e | |
parent | 3f0f8d9c87cc53042f444a0c00c87df630092d31 (diff) | |
download | mtk-20170518-5a76c6bdd79800da721267a8747cac89766408da.zip mtk-20170518-5a76c6bdd79800da721267a8747cac89766408da.tar.gz mtk-20170518-5a76c6bdd79800da721267a8747cac89766408da.tar.bz2 |
fix tab damage in 141-led_count.patch
SVN-Revision: 27254
-rw-r--r-- | target/linux/brcm63xx/patches-2.6.39/141-led_count.patch | 2 | ||||
-rw-r--r-- | target/linux/brcm63xx/patches-3.0/141-led_count.patch | 2 |
2 files changed, 2 insertions, 2 deletions
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 baf0920..e0fa198 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 582f868..c9adbb2 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; |