diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2011-12-31 15:02:30 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2011-12-31 15:02:30 +0000 |
commit | fa9d5491b53f5d759b93be6d2303147367f3791c (patch) | |
tree | 406bd29438aec3260c7656033cc271456cb6c856 /target/linux/generic/files/include | |
parent | 9bf39048561d76a5b0bde5a6be4f7020c0f622b7 (diff) | |
download | master-187ad058-fa9d5491b53f5d759b93be6d2303147367f3791c.tar.gz master-187ad058-fa9d5491b53f5d759b93be6d2303147367f3791c.tar.bz2 master-187ad058-fa9d5491b53f5d759b93be6d2303147367f3791c.zip |
kernel: swconfig: introduce a generic switch LED trigger
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29627 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic/files/include')
-rw-r--r-- | target/linux/generic/files/include/linux/switch.h | 5 |
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 { |