aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/adm5120/patches/203-gpio_leds_brightness.patch
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2008-09-13 17:32:20 +0000
committerGabor Juhos <juhosg@openwrt.org>2008-09-13 17:32:20 +0000
commit94fee202311e9e82c2501ef35bfc10bfc46b839f (patch)
tree98fa27a2aa7b8a9fff687e15302f9d2db7964392 /target/linux/adm5120/patches/203-gpio_leds_brightness.patch
parentb7b1b8dc73016ea860ad7b47bc165477f0672bd3 (diff)
downloadupstream-94fee202311e9e82c2501ef35bfc10bfc46b839f.tar.gz
upstream-94fee202311e9e82c2501ef35bfc10bfc46b839f.tar.bz2
upstream-94fee202311e9e82c2501ef35bfc10bfc46b839f.zip
remove 2.6.25 specific stuff
SVN-Revision: 12598
Diffstat (limited to 'target/linux/adm5120/patches/203-gpio_leds_brightness.patch')
-rw-r--r--target/linux/adm5120/patches/203-gpio_leds_brightness.patch27
1 files changed, 0 insertions, 27 deletions
diff --git a/target/linux/adm5120/patches/203-gpio_leds_brightness.patch b/target/linux/adm5120/patches/203-gpio_leds_brightness.patch
deleted file mode 100644
index 06394da295..0000000000
--- a/target/linux/adm5120/patches/203-gpio_leds_brightness.patch
+++ /dev/null
@@ -1,27 +0,0 @@
---- a/drivers/leds/leds-gpio.c
-+++ b/drivers/leds/leds-gpio.c
-@@ -41,13 +41,17 @@
- 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