diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2008-02-09 10:29:28 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2008-02-09 10:29:28 +0000 |
commit | d187aba072246a4b03979b52b63198967cb511e6 (patch) | |
tree | 0e564d4fff61a6173e95cf1e26ff005dd47a5fa4 /target/linux/adm5120/patches-2.6.24/203-gpio_leds_brightness.patch | |
parent | cf02f1c6b20c64b88d51d0d6d5324ea6010583c7 (diff) | |
download | mtk-20170518-d187aba072246a4b03979b52b63198967cb511e6.zip mtk-20170518-d187aba072246a4b03979b52b63198967cb511e6.tar.gz mtk-20170518-d187aba072246a4b03979b52b63198967cb511e6.tar.bz2 |
switch to 2.6.24
SVN-Revision: 10427
Diffstat (limited to 'target/linux/adm5120/patches-2.6.24/203-gpio_leds_brightness.patch')
-rw-r--r-- | target/linux/adm5120/patches-2.6.24/203-gpio_leds_brightness.patch | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/target/linux/adm5120/patches-2.6.24/203-gpio_leds_brightness.patch b/target/linux/adm5120/patches-2.6.24/203-gpio_leds_brightness.patch deleted file mode 100644 index 37eb0ab..0000000 --- a/target/linux/adm5120/patches-2.6.24/203-gpio_leds_brightness.patch +++ /dev/null @@ -1,29 +0,0 @@ -Index: linux-2.6.24/drivers/leds/leds-gpio.c -=================================================================== ---- linux-2.6.24.orig/drivers/leds/leds-gpio.c -+++ linux-2.6.24/drivers/leds/leds-gpio.c -@@ -41,13 +41,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 preemptible task context */ - if (led_dat->can_sleep) { |