diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-01-12 12:25:42 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2013-01-12 12:25:42 +0000 |
commit | df8a8f25157db4c399a256152a8203f88da5c575 (patch) | |
tree | 937ea55edad49797e69c13ebbdbac54dfd1355f6 /target/linux/adm5120/patches-3.6/203-gpio_leds_brightness.patch | |
parent | d4725679975ef2ec1e10aad5cf39f87cc9e28dd8 (diff) | |
download | mtk-20170518-df8a8f25157db4c399a256152a8203f88da5c575.zip mtk-20170518-df8a8f25157db4c399a256152a8203f88da5c575.tar.gz mtk-20170518-df8a8f25157db4c399a256152a8203f88da5c575.tar.bz2 |
adm5120: remove 3.6 support
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 35116
Diffstat (limited to 'target/linux/adm5120/patches-3.6/203-gpio_leds_brightness.patch')
-rw-r--r-- | target/linux/adm5120/patches-3.6/203-gpio_leds_brightness.patch | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/target/linux/adm5120/patches-3.6/203-gpio_leds_brightness.patch b/target/linux/adm5120/patches-3.6/203-gpio_leds_brightness.patch deleted file mode 100644 index 195ff6a..0000000 --- a/target/linux/adm5120/patches-3.6/203-gpio_leds_brightness.patch +++ /dev/null @@ -1,27 +0,0 @@ ---- a/drivers/leds/leds-gpio.c -+++ b/drivers/leds/leds-gpio.c -@@ -54,13 +54,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 |