Changeset 39402


Ignore:
Timestamp:
2014-01-26T17:46:21+01:00 (4 years ago)
Author:
juhosg
Message:

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@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/generic/files/drivers/net/phy/swconfig_leds.c

    r33946 r39402  
    210210        if (!link) { 
    211211                if (link != trig_data->prev_link) 
    212                         led_set_brightness(trig_data->led_cdev, LED_OFF); 
     212                        swconfig_trig_set_brightness(trig_data, LED_OFF); 
    213213        } else { 
    214214                unsigned long traffic; 
Note: See TracChangeset for help on using the changeset viewer.