diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-04-29 07:36:37 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-04-29 07:36:37 +0000 |
commit | 19be4923e0a2dfa6dd173288fc0ead976a0f2b38 (patch) | |
tree | 98534ba27227e196daf97cc67265e28c19a16428 /target/linux/adm5120/patches-2.6.32/203-gpio_leds_brightness.patch | |
parent | aa48f1326b197829d595553ab645b283c3b7b88c (diff) | |
download | upstream-19be4923e0a2dfa6dd173288fc0ead976a0f2b38.tar.gz upstream-19be4923e0a2dfa6dd173288fc0ead976a0f2b38.tar.bz2 upstream-19be4923e0a2dfa6dd173288fc0ead976a0f2b38.zip |
adm5120: remove 2.6.32 support
SVN-Revision: 31510
Diffstat (limited to 'target/linux/adm5120/patches-2.6.32/203-gpio_leds_brightness.patch')
-rw-r--r-- | target/linux/adm5120/patches-2.6.32/203-gpio_leds_brightness.patch | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/target/linux/adm5120/patches-2.6.32/203-gpio_leds_brightness.patch b/target/linux/adm5120/patches-2.6.32/203-gpio_leds_brightness.patch deleted file mode 100644 index 8bccf395c1..0000000000 --- a/target/linux/adm5120/patches-2.6.32/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 |