diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2008-06-17 14:30:18 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2008-06-17 14:30:18 +0000 |
commit | 13bb189a1500a306e8611b9e734eed8b8a46506e (patch) | |
tree | 5a28619b0bb967d37ebdb9a0ef0a7a40fa2747cc /target/linux/adm5120/patches-2.6.25/203-gpio_leds_brightness.patch | |
parent | 2ccf25789e09a6745270c8976917f4ccd5c68797 (diff) | |
download | upstream-13bb189a1500a306e8611b9e734eed8b8a46506e.tar.gz upstream-13bb189a1500a306e8611b9e734eed8b8a46506e.tar.bz2 upstream-13bb189a1500a306e8611b9e734eed8b8a46506e.zip |
switch to 2.6.25.7
SVN-Revision: 11526
Diffstat (limited to 'target/linux/adm5120/patches-2.6.25/203-gpio_leds_brightness.patch')
-rw-r--r-- | target/linux/adm5120/patches-2.6.25/203-gpio_leds_brightness.patch | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/target/linux/adm5120/patches-2.6.25/203-gpio_leds_brightness.patch b/target/linux/adm5120/patches-2.6.25/203-gpio_leds_brightness.patch deleted file mode 100644 index 06394da295..0000000000 --- a/target/linux/adm5120/patches-2.6.25/203-gpio_leds_brightness.patch +++ /dev/null @@ -1,27 +0,0 @@ ---- a/drivers/leds/leds-gpio.c -+++ b/drivers/leds/leds-gpio.c -@@ -41,13 +41,17 @@ - container_of(led_cdev, struct gpio_led_data, cdev); - int level; - -- if (value == LED_OFF) -- level = 0; -- else -- level = 1; -- -- if (led_dat->active_low) -- level = !level; -+ switch (value) { -+ case LED_OFF: -+ level = led_dat->active_low ? 1 : 0; -+ break; -+ case LED_FULL: -+ level = led_dat->active_low ? 0 : 1; -+ break; -+ default: -+ level = value; -+ break; -+ } - - /* Setting GPIOs with I2C/etc requires a task context, and we don't - * seem to have a reliable way to know if we're already in one; so |