diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-04-25 12:57:35 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-04-25 12:57:35 +0000 |
commit | cad1fa359d0944701d3113df591c5cedeb94627a (patch) | |
tree | 86fe1328f829a31d613e57ee0cfb2791df01875d /target/linux/adm5120/patches-2.6.38/203-gpio_leds_brightness.patch | |
parent | 671361c7ea8a260f414046317769d502aaf00d51 (diff) | |
download | upstream-cad1fa359d0944701d3113df591c5cedeb94627a.tar.gz upstream-cad1fa359d0944701d3113df591c5cedeb94627a.tar.bz2 upstream-cad1fa359d0944701d3113df591c5cedeb94627a.zip |
adm5120: remove 2.6.38 support
SVN-Revision: 31475
Diffstat (limited to 'target/linux/adm5120/patches-2.6.38/203-gpio_leds_brightness.patch')
-rw-r--r-- | target/linux/adm5120/patches-2.6.38/203-gpio_leds_brightness.patch | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/target/linux/adm5120/patches-2.6.38/203-gpio_leds_brightness.patch b/target/linux/adm5120/patches-2.6.38/203-gpio_leds_brightness.patch deleted file mode 100644 index ac3c516353..0000000000 --- a/target/linux/adm5120/patches-2.6.38/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 |