diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2010-03-26 10:45:31 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2010-03-26 10:45:31 +0000 |
commit | 2ef84970ea27d144050fe509a78fdc565c69135d (patch) | |
tree | 7c816fe2bd7f76d5932d470dc8c01390d7b64857 /target/linux/adm5120/patches-2.6.30/203-gpio_leds_brightness.patch | |
parent | e66a368bd1c068d50e24bd906cfc6ef7009f7580 (diff) | |
download | master-31e0f0ae-2ef84970ea27d144050fe509a78fdc565c69135d.tar.gz master-31e0f0ae-2ef84970ea27d144050fe509a78fdc565c69135d.tar.bz2 master-31e0f0ae-2ef84970ea27d144050fe509a78fdc565c69135d.zip |
adm5120: nuke 2.6.30 stuff
SVN-Revision: 20445
Diffstat (limited to 'target/linux/adm5120/patches-2.6.30/203-gpio_leds_brightness.patch')
-rw-r--r-- | target/linux/adm5120/patches-2.6.30/203-gpio_leds_brightness.patch | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/target/linux/adm5120/patches-2.6.30/203-gpio_leds_brightness.patch b/target/linux/adm5120/patches-2.6.30/203-gpio_leds_brightness.patch deleted file mode 100644 index 8bccf395c1..0000000000 --- a/target/linux/adm5120/patches-2.6.30/203-gpio_leds_brightness.patch +++ /dev/null @@ -1,27 +0,0 @@ ---- a/drivers/leds/leds-gpio.c -+++ b/drivers/leds/leds-gpio.c -@@ -44,13 +44,17 @@ static void gpio_led_set(struct led_clas - 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 |