009-adm5120_leds_switch_trigger.patch 787 B

12345678910111213141516171819202122
  1. --- a/drivers/leds/Kconfig
  2. +++ b/drivers/leds/Kconfig
  3. @@ -508,4 +508,12 @@ config LEDS_VERSATILE
  4. comment "LED Triggers"
  5. source "drivers/leds/trigger/Kconfig"
  6. +config LEDS_TRIGGER_ADM5120_SWITCH
  7. + tristate "LED ADM5120 Switch Port Status Trigger"
  8. + depends on LEDS_TRIGGERS && ADM5120
  9. + help
  10. + This allows LEDs to be controlled by the port states of
  11. + the ADM5120 built-in Ethernet Switch
  12. + If unsure, say N.
  13. +
  14. endif # NEW_LEDS
  15. --- a/drivers/leds/Makefile
  16. +++ b/drivers/leds/Makefile
  17. @@ -65,3 +65,4 @@ obj-$(CONFIG_LEDS_TRIGGERS) += trigger/
  18. obj-$(CONFIG_LEDS_TRIGGER_MORSE) += ledtrig-morse.o
  19. obj-$(CONFIG_LEDS_TRIGGER_NETDEV) += ledtrig-netdev.o
  20. obj-$(CONFIG_LEDS_TRIGGER_USBDEV) += ledtrig-usbdev.o
  21. +obj-$(CONFIG_LEDS_TRIGGER_ADM5120_SWITCH) += ledtrig-adm5120-switch.o