830-ledtrig_morse.patch 824 B

12345678910111213141516171819202122232425262728
  1. --- a/drivers/leds/trigger/Kconfig
  2. +++ b/drivers/leds/trigger/Kconfig
  3. @@ -108,4 +108,8 @@ config LEDS_TRIGGER_CAMERA
  4. This enables direct flash/torch on/off by the driver, kernel space.
  5. If unsure, say Y.
  6. +config LEDS_TRIGGER_MORSE
  7. + tristate "LED Morse Trigger"
  8. + depends on LEDS_TRIGGERS
  9. +
  10. endif # LEDS_TRIGGERS
  11. --- a/drivers/leds/Makefile
  12. +++ b/drivers/leds/Makefile
  13. @@ -62,3 +62,4 @@ obj-$(CONFIG_LEDS_DAC124S085) += leds-d
  14. # LED Triggers
  15. obj-$(CONFIG_LEDS_TRIGGERS) += trigger/
  16. +obj-$(CONFIG_LEDS_TRIGGER_MORSE) += ledtrig-morse.o
  17. --- a/drivers/leds/ledtrig-morse.c
  18. +++ b/drivers/leds/ledtrig-morse.c
  19. @@ -26,7 +26,6 @@
  20. #include <linux/list.h>
  21. #include <linux/spinlock.h>
  22. #include <linux/device.h>
  23. -#include <linux/sysdev.h>
  24. #include <linux/timer.h>
  25. #include <linux/ctype.h>
  26. #include <linux/leds.h>