refresh .23 kernel paches
[openwrt/staging/florian.git] / target / linux / adm5120 / patches-2.6.23 / 009-adm5120_leds_switch_trigger.patch
1 Index: linux-2.6.23.14/drivers/leds/Kconfig
2 ===================================================================
3 --- linux-2.6.23.14.orig/drivers/leds/Kconfig
4 +++ linux-2.6.23.14/drivers/leds/Kconfig
5 @@ -165,4 +165,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.23.14/drivers/leds/Makefile
19 ===================================================================
20 --- linux-2.6.23.14.orig/drivers/leds/Makefile
21 +++ linux-2.6.23.14/drivers/leds/Makefile
22 @@ -26,3 +26,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