* Driver for LEDs connected to GPIO lines
*
* Copyright (C) 2007 OpenWrt.org
- * Copyright (C) 2007 Gabor Juhos <juhosg@freemail.hu>
+ * Copyright (C) 2007 Gabor Juhos <juhosg at openwrt.org>
*
* This file was derived from:
* /drivers/led/leds-s3c24xx.c
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;
}
}
module_init(gpio_led_init);
module_exit(gpio_led_exit);
-MODULE_AUTHOR("Gabor Juhos <juhosg@freemail.hu>");
+MODULE_AUTHOR("Gabor Juhos <juhosg at openwrt.org>");
MODULE_DESCRIPTION(DRV_DESC);
MODULE_LICENSE("GPL");