summaryrefslogtreecommitdiff
path: root/target/linux/generic
diff options
context:
space:
mode:
authorjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2014-01-26 16:46:21 +0000
committerjuhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>2014-01-26 16:46:21 +0000
commit22ecb64c6a9d493ee25c76b1699f3ecd9dbf9664 (patch)
treef32a343af6b486ab3d3e6fc632b66c96afe5f2a7 /target/linux/generic
parent233cc9a8703bd1e68f56ad3ff36fdeeb87528e7b (diff)
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39402 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/generic')
-rw-r--r--target/linux/generic/files/drivers/net/phy/swconfig_leds.c2
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 2fc5d554d4..abd7bed48c 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;