831-ledtrig_netdev.patch 658 B

123456789101112131415161718192021
  1. --- a/drivers/leds/trigger/Kconfig
  2. +++ b/drivers/leds/trigger/Kconfig
  3. @@ -108,4 +108,11 @@ 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_NETDEV
  7. + tristate "LED Netdev Trigger"
  8. + depends on NET && LEDS_TRIGGERS
  9. + help
  10. + This allows LEDs to be controlled by network device activity.
  11. + If unsure, say Y.
  12. +
  13. endif # LEDS_TRIGGERS
  14. --- a/drivers/leds/Makefile
  15. +++ b/drivers/leds/Makefile
  16. @@ -62,3 +62,4 @@ obj-$(CONFIG_LEDS_DAC124S085) += leds-d
  17. # LED Triggers
  18. obj-$(CONFIG_LEDS_TRIGGERS) += trigger/
  19. +obj-$(CONFIG_LEDS_TRIGGER_NETDEV) += ledtrig-netdev.o