| 1 | --- a/drivers/leds/Kconfig |
| 2 | +++ b/drivers/leds/Kconfig |
| 3 | @@ -480,4 +480,11 @@ config LEDS_TRIGGER_NETDEV |
| 4 | This allows LEDs to be controlled by network device activity. |
| 5 | If unsure, say Y. |
| 6 | |
| 7 | +config LEDS_TRIGGER_USBDEV |
| 8 | + tristate "LED USB device Trigger" |
| 9 | + depends on USB && LEDS_TRIGGERS |
| 10 | + help |
| 11 | + This allows LEDs to be controlled by the presence/activity of |
| 12 | + an USB device. If unsure, say N. |
| 13 | + |
| 14 | endif # NEW_LEDS |
| 15 | --- a/drivers/leds/Makefile |
| 16 | +++ b/drivers/leds/Makefile |
| 17 | @@ -56,3 +56,4 @@ obj-$(CONFIG_LEDS_TRIGGER_GPIO) += ledt |
| 18 | obj-$(CONFIG_LEDS_TRIGGER_DEFAULT_ON) += ledtrig-default-on.o |
| 19 | obj-$(CONFIG_LEDS_TRIGGER_MORSE) += ledtrig-morse.o |
| 20 | obj-$(CONFIG_LEDS_TRIGGER_NETDEV) += ledtrig-netdev.o |
| 21 | +obj-$(CONFIG_LEDS_TRIGGER_USBDEV) += ledtrig-usbdev.o |
| 22 | |