diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2007-08-07 16:11:58 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2007-08-07 16:11:58 +0000 |
commit | fc6874d691b1823bb3de85e638be436ccd0ea88b (patch) | |
tree | ab9dc1abebb262de811a8c27790c680f95d89f16 /target/linux/adm5120-2.6/files/drivers/leds/leds-gpio.c | |
parent | 9a819643c8197ebe7783a5ee0f0afea20540e4dd (diff) | |
download | master-31e0f0ae-fc6874d691b1823bb3de85e638be436ccd0ea88b.tar.gz master-31e0f0ae-fc6874d691b1823bb3de85e638be436ccd0ea88b.tar.bz2 master-31e0f0ae-fc6874d691b1823bb3de85e638be436ccd0ea88b.zip |
add support for special LED brightness values
SVN-Revision: 8376
Diffstat (limited to 'target/linux/adm5120-2.6/files/drivers/leds/leds-gpio.c')
-rwxr-xr-x | target/linux/adm5120-2.6/files/drivers/leds/leds-gpio.c | 5 |
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 7ae1432791..d10506ad98 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; } } |