830-ledtrig_morse.patch 922 B

12345678910111213141516171819202122232425262728
  1. --- a/drivers/leds/Kconfig
  2. +++ b/drivers/leds/Kconfig
  3. @@ -480,4 +480,8 @@ config LEDS_TRIGGER_DEFAULT_ON
  4. comment "iptables trigger is under Netfilter config (LED target)"
  5. depends on LEDS_TRIGGERS
  6. +config LEDS_TRIGGER_MORSE
  7. + tristate "LED Morse Trigger"
  8. + depends on LEDS_TRIGGERS
  9. +
  10. endif # NEW_LEDS
  11. --- a/drivers/leds/Makefile
  12. +++ b/drivers/leds/Makefile
  13. @@ -57,3 +57,4 @@ obj-$(CONFIG_LEDS_TRIGGER_HEARTBEAT) +=
  14. obj-$(CONFIG_LEDS_TRIGGER_BACKLIGHT) += ledtrig-backlight.o
  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_MORSE) += ledtrig-morse.o
  18. --- a/drivers/leds/ledtrig-morse.c
  19. +++ b/drivers/leds/ledtrig-morse.c
  20. @@ -26,7 +26,6 @@
  21. #include <linux/list.h>
  22. #include <linux/spinlock.h>
  23. #include <linux/device.h>
  24. -#include <linux/sysdev.h>
  25. #include <linux/timer.h>
  26. #include <linux/ctype.h>
  27. #include <linux/leds.h>