diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2014-01-26 16:46:21 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2014-01-26 16:46:21 +0000 |
commit | 7c137c187f289cc593888f4ce645351d590e365f (patch) | |
tree | 71a434ed25e1395399672e7ea6e22408add723c7 /target/linux/generic/files/drivers | |
parent | 3b8c51771da376aa6ca810c12866ffa4de4417e9 (diff) | |
download | mtk-20170518-7c137c187f289cc593888f4ce645351d590e365f.zip mtk-20170518-7c137c187f289cc593888f4ce645351d590e365f.tar.gz mtk-20170518-7c137c187f289cc593888f4ce645351d590e365f.tar.bz2 |
ar71xx: swconfig: use the local helper to set LED brightness on link down
Use the 'swconfig_trig_set_brightness' function to set
the brightness value of the LED when the link goes down.
This ensures that the last brighness value is saved into
a local variable which is used to track the actual LED
status.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 39402
Diffstat (limited to 'target/linux/generic/files/drivers')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/swconfig_leds.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/swconfig_leds.c b/target/linux/generic/files/drivers/net/phy/swconfig_leds.c index 2fc5d55..abd7bed 100644 --- a/target/linux/generic/files/drivers/net/phy/swconfig_leds.c +++ b/target/linux/generic/files/drivers/net/phy/swconfig_leds.c @@ -209,7 +209,7 @@ swconfig_trig_led_event(struct switch_led_trigger *sw_trig, link = !!(sw_trig->port_link & port_mask); if (!link) { if (link != trig_data->prev_link) - led_set_brightness(trig_data->led_cdev, LED_OFF); + swconfig_trig_set_brightness(trig_data, LED_OFF); } else { unsigned long traffic; int i; |