From 55894a40aaba5fa70a090486a1273f42d512461f Mon Sep 17 00:00:00 2001 From: juhosg Date: Sat, 31 Dec 2011 15:02:30 +0000 Subject: kernel: swconfig: introduce a generic switch LED trigger git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29627 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/generic/files/include/linux/switch.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'target/linux/generic/files/include') diff --git a/target/linux/generic/files/include/linux/switch.h b/target/linux/generic/files/include/linux/switch.h index 04371ae74..ba1de9b18 100644 --- a/target/linux/generic/files/include/linux/switch.h +++ b/target/linux/generic/files/include/linux/switch.h @@ -99,6 +99,7 @@ struct switch_op; struct switch_val; struct switch_attr; struct switch_attrlist; +struct switch_led_trigger; int register_switch(struct switch_dev *dev, struct net_device *netdev); void unregister_switch(struct switch_dev *dev); @@ -192,6 +193,10 @@ struct switch_dev { spinlock_t lock; struct switch_port *portbuf; + +#ifdef CONFIG_SWCONFIG_LEDS + struct switch_led_trigger *led_trigger; +#endif }; struct switch_port { -- cgit v1.2.3