009-adm5120_leds_switch_trigger.patch 737 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. @@ -63,3 +63,4 @@ obj-$(CONFIG_LEDS_DAC124S085) += leds-d
  18. # LED Triggers
  19. obj-$(CONFIG_LEDS_TRIGGERS) += trigger/
  20. obj-$(CONFIG_LEDS_TRIGGER_NETDEV) += ledtrig-netdev.o
  21. +obj-$(CONFIG_LEDS_TRIGGER_ADM5120_SWITCH) += ledtrig-adm5120-switch.o