aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/adm5120/patches-2.6.23/203-gpio_leds_brightness.patch
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2008-02-09 10:29:28 +0000
committerGabor Juhos <juhosg@openwrt.org>2008-02-09 10:29:28 +0000
commitd187aba072246a4b03979b52b63198967cb511e6 (patch)
tree0e564d4fff61a6173e95cf1e26ff005dd47a5fa4 /target/linux/adm5120/patches-2.6.23/203-gpio_leds_brightness.patch
parentcf02f1c6b20c64b88d51d0d6d5324ea6010583c7 (diff)
downloadupstream-d187aba072246a4b03979b52b63198967cb511e6.tar.gz
upstream-d187aba072246a4b03979b52b63198967cb511e6.tar.bz2
upstream-d187aba072246a4b03979b52b63198967cb511e6.zip
switch to 2.6.24
SVN-Revision: 10427
Diffstat (limited to 'target/linux/adm5120/patches-2.6.23/203-gpio_leds_brightness.patch')
-rw-r--r--target/linux/adm5120/patches-2.6.23/203-gpio_leds_brightness.patch29
1 files changed, 0 insertions, 29 deletions
diff --git a/target/linux/adm5120/patches-2.6.23/203-gpio_leds_brightness.patch b/target/linux/adm5120/patches-2.6.23/203-gpio_leds_brightness.patch
deleted file mode 100644
index e5d8752a8c..0000000000
--- a/target/linux/adm5120/patches-2.6.23/203-gpio_leds_brightness.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-Index: linux-2.6.23.14/drivers/leds/leds-gpio.c
-===================================================================
---- linux-2.6.23.14.orig/drivers/leds/leds-gpio.c
-+++ linux-2.6.23.14/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) {