830-ledtrig_morse.patch 877 B

12345678910111213141516171819202122232425262728
  1. --- a/drivers/leds/Kconfig
  2. +++ b/drivers/leds/Kconfig
  3. @@ -561,4 +561,8 @@ config LEDS_TRIGGER_TRANSIENT
  4. GPIO/PWM based hardware.
  5. If unsure, say Y.
  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. @@ -65,3 +65,4 @@ obj-$(CONFIG_LEDS_TRIGGER_GPIO) += ledt
  14. obj-$(CONFIG_LEDS_TRIGGER_CPU) += ledtrig-cpu.o
  15. obj-$(CONFIG_LEDS_TRIGGER_DEFAULT_ON) += ledtrig-default-on.o
  16. obj-$(CONFIG_LEDS_TRIGGER_TRANSIENT) += ledtrig-transient.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>