projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
allow the kernel to provide own series files for specific subdirs
[openwrt.git]
/
target
/
linux
/
adm5120-2.6
/
files
/
drivers
/
leds
/
leds-gpio.c
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
7ae1432
..
b1a1f1c
100755
(executable)
--- a/
target/linux/adm5120-2.6/files/drivers/leds/leds-gpio.c
+++ b/
target/linux/adm5120-2.6/files/drivers/leds/leds-gpio.c
@@
-4,7
+4,7
@@
* Driver for LEDs connected to GPIO lines
*
* Copyright (C) 2007 OpenWrt.org
* 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
*
* This file was derived from:
* /drivers/led/leds-s3c24xx.c
@@
-66,11
+66,14
@@
static void gpio_led_set(struct led_classdev *led_cdev,
pdata = led->pdata;
switch (brightness) {
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:
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;
}
}
break;
}
}
@@
-204,6
+207,6
@@
static void __exit gpio_led_exit(void)
module_init(gpio_led_init);
module_exit(gpio_led_exit);
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");
MODULE_DESCRIPTION(DRV_DESC);
MODULE_LICENSE("GPL");
This page took
0.02381 seconds
and
4
git commands to generate.