summaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-08-07 16:11:58 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-08-07 16:11:58 +0000
commitc0a6927a77462a30773ecbc63066b16d43a01cb8 (patch)
treee5e91af6ae8020f94f4036112125e0f903bbf47d /target/linux
parent82fb21ae133c494c3055d2d58840f7d2aa897b5e (diff)
add support for special LED brightness values
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8376 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux')
-rwxr-xr-xtarget/linux/adm5120-2.6/files/drivers/leds/leds-gpio.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/target/linux/adm5120-2.6/files/drivers/leds/leds-gpio.c b/target/linux/adm5120-2.6/files/drivers/leds/leds-gpio.c
index 7ae143279..d10506ad9 100755
--- a/target/linux/adm5120-2.6/files/drivers/leds/leds-gpio.c
+++ b/target/linux/adm5120-2.6/files/drivers/leds/leds-gpio.c
@@ -66,11 +66,14 @@ static void gpio_led_set(struct led_classdev *led_cdev,
pdata = led->pdata;
switch (brightness) {
+ case LED_FULL:
+ gpio_direction_output(pdata->gpio, pdata->value_on);
+ break;
case LED_OFF:
gpio_direction_output(pdata->gpio, pdata->value_off);
break;
default:
- gpio_direction_output(pdata->gpio, pdata->value_on);
+ gpio_direction_output(pdata->gpio, brightness);
break;
}
}