aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files/include
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2011-12-31 15:02:30 +0000
committerGabor Juhos <juhosg@openwrt.org>2011-12-31 15:02:30 +0000
commit5fa65cba6eef681c962ab43f7ca2834900a214ad (patch)
treeb71020d49347e0c262825cd8ec8ac4be70d2ec2d /target/linux/generic/files/include
parent8c2482f76e89e907ec31ea08381394e6eb5d3d46 (diff)
downloadupstream-5fa65cba6eef681c962ab43f7ca2834900a214ad.tar.gz
upstream-5fa65cba6eef681c962ab43f7ca2834900a214ad.tar.bz2
upstream-5fa65cba6eef681c962ab43f7ca2834900a214ad.zip
kernel: swconfig: introduce a generic switch LED trigger
SVN-Revision: 29627
Diffstat (limited to 'target/linux/generic/files/include')
-rw-r--r--target/linux/generic/files/include/linux/switch.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/target/linux/generic/files/include/linux/switch.h b/target/linux/generic/files/include/linux/switch.h
index 04371ae741..ba1de9b18b 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 {