fbd0626e69fcbc0c99fa34b3c96a46b7ba9844c4
[openwrt/staging/chunkeey.git] / target / linux / adm5120 / patches / 009-adm5120_leds_switch_trigger.patch
1 Index: linux-2.6.24.2/drivers/leds/Kconfig
2 ===================================================================
3 --- linux-2.6.24.2.orig/drivers/leds/Kconfig
4 +++ linux-2.6.24.2/drivers/leds/Kconfig
5 @@ -178,4 +178,12 @@ config LEDS_TRIGGER_DEFAULT_ON
6 This allows LEDs to be initialised in the ON state.
7 If unsure, say Y.
8
9 +config LEDS_TRIGGER_ADM5120_SWITCH
10 + tristate "LED ADM5120 Switch Port Status Trigger"
11 + depends on LEDS_TRIGGERS && LEDS_ADM5120
12 + help
13 + This allows LEDs to be controlled by the port states of
14 + the ADM5120 built-in Ethernet Switch
15 + If unsure, say N.
16 +
17 endif # NEW_LEDS
18 Index: linux-2.6.24.2/drivers/leds/Makefile
19 ===================================================================
20 --- linux-2.6.24.2.orig/drivers/leds/Makefile
21 +++ linux-2.6.24.2/drivers/leds/Makefile
22 @@ -28,3 +28,4 @@ obj-$(CONFIG_LEDS_TRIGGER_IDE_DISK) += l
23 obj-$(CONFIG_LEDS_TRIGGER_HEARTBEAT) += ledtrig-heartbeat.o
24 obj-$(CONFIG_LEDS_TRIGGER_MORSE) += ledtrig-morse.o
25 obj-$(CONFIG_LEDS_TRIGGER_DEFAULT_ON) += ledtrig-default-on.o
26 +obj-$(CONFIG_LEDS_TRIGGER_ADM5120_SWITCH) += ledtrig-adm5120-switch.o