[adm5120] switch to 2.6.24
[15.05/openwrt.git] / target / linux / adm5120 / patches / 009-adm5120_leds_switch_trigger.patch
1 Index: linux-2.6.24/drivers/leds/Kconfig
2 ===================================================================
3 --- linux-2.6.24.orig/drivers/leds/Kconfig
4 +++ linux-2.6.24/drivers/leds/Kconfig
5 @@ -171,4 +171,12 @@ config LEDS_TRIGGER_MORSE
6         tristate "LED Morse Trigger"
7         depends on LEDS_TRIGGERS
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/drivers/leds/Makefile
19 ===================================================================
20 --- linux-2.6.24.orig/drivers/leds/Makefile
21 +++ linux-2.6.24/drivers/leds/Makefile
22 @@ -27,3 +27,4 @@ obj-$(CONFIG_LEDS_TRIGGER_TIMER)      += ledt
23  obj-$(CONFIG_LEDS_TRIGGER_IDE_DISK)    += ledtrig-ide-disk.o
24  obj-$(CONFIG_LEDS_TRIGGER_HEARTBEAT)   += ledtrig-heartbeat.o
25  obj-$(CONFIG_LEDS_TRIGGER_MORSE)       += ledtrig-morse.o
26 +obj-$(CONFIG_LEDS_TRIGGER_ADM5120_SWITCH) += ledtrig-adm5120-switch.o