diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-04-17 18:39:32 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-04-17 18:39:32 +0000 |
commit | 64f67b9c2a7853840fc4d0a44b2b4430d256014c (patch) | |
tree | eeb5e2b882a607f6d432d9a7e1ce0dd60e7ce9d8 /target/linux/adm5120/patches-2.6.37/203-gpio_leds_brightness.patch | |
parent | ede6b0d3600b11aaeacc0316bb18ab6e58aa9541 (diff) | |
download | upstream-64f67b9c2a7853840fc4d0a44b2b4430d256014c.tar.gz upstream-64f67b9c2a7853840fc4d0a44b2b4430d256014c.tar.bz2 upstream-64f67b9c2a7853840fc4d0a44b2b4430d256014c.zip |
adm5120: remove patches/configs for unused kernel versions
SVN-Revision: 26706
Diffstat (limited to 'target/linux/adm5120/patches-2.6.37/203-gpio_leds_brightness.patch')
-rw-r--r-- | target/linux/adm5120/patches-2.6.37/203-gpio_leds_brightness.patch | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/target/linux/adm5120/patches-2.6.37/203-gpio_leds_brightness.patch b/target/linux/adm5120/patches-2.6.37/203-gpio_leds_brightness.patch deleted file mode 100644 index ac3c516353..0000000000 --- a/target/linux/adm5120/patches-2.6.37/203-gpio_leds_brightness.patch +++ /dev/null @@ -1,27 +0,0 @@ ---- a/drivers/leds/leds-gpio.c -+++ b/drivers/leds/leds-gpio.c -@@ -52,13 +52,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 |