Root/target/linux/generic/patches-3.6/830-ledtrig_morse.patch

1--- a/drivers/leds/Kconfig
2+++ b/drivers/leds/Kconfig
3@@ -537,4 +537,8 @@ config LEDS_TRIGGER_TRANSIENT
4       GPIO/PWM based hardware.
5       If unsure, say Y.
6 
7+config LEDS_TRIGGER_MORSE
8+ tristate "LED Morse Trigger"
9+ depends on LEDS_TRIGGERS
10+
11 endif # NEW_LEDS
12--- a/drivers/leds/Makefile
13+++ b/drivers/leds/Makefile
14@@ -63,3 +63,4 @@ obj-$(CONFIG_LEDS_TRIGGER_BACKLIGHT) +=
15 obj-$(CONFIG_LEDS_TRIGGER_GPIO) += ledtrig-gpio.o
16 obj-$(CONFIG_LEDS_TRIGGER_DEFAULT_ON) += ledtrig-default-on.o
17 obj-$(CONFIG_LEDS_TRIGGER_TRANSIENT) += ledtrig-transient.o
18+obj-$(CONFIG_LEDS_TRIGGER_MORSE) += ledtrig-morse.o
19--- a/drivers/leds/ledtrig-morse.c
20+++ b/drivers/leds/ledtrig-morse.c
21@@ -26,7 +26,6 @@
22 #include <linux/list.h>
23 #include <linux/spinlock.h>
24 #include <linux/device.h>
25-#include <linux/sysdev.h>
26 #include <linux/timer.h>
27 #include <linux/ctype.h>
28 #include <linux/leds.h>
29

Archive Download this file



interactive