diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-10-26 18:58:18 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-10-26 18:58:18 +0000 |
commit | ee9376d1537321c04cf71983619fba3f8c9b490a (patch) | |
tree | 236cc46cffc075ffe2584aaaa07fb24eca598f49 /target/linux/generic/files | |
parent | 1127781d40c1a38de87ba4853dae47b2980dad03 (diff) | |
download | upstream-ee9376d1537321c04cf71983619fba3f8c9b490a.tar.gz upstream-ee9376d1537321c04cf71983619fba3f8c9b490a.tar.bz2 upstream-ee9376d1537321c04cf71983619fba3f8c9b490a.zip |
generic: swconfig: use led_set_brightness in LED control code
The 'led_brightness_set' function has
been renamed to 'led_set_brightness'
in recent ernels. Use the new name and
add a compatibility patch for 3.3.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 33946
Diffstat (limited to 'target/linux/generic/files')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/swconfig_leds.c | 4 |
1 files changed, 2 insertions, 2 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 6f54cc15b7..2fc5d554d4 100644 --- a/target/linux/generic/files/drivers/net/phy/swconfig_leds.c +++ b/target/linux/generic/files/drivers/net/phy/swconfig_leds.c @@ -46,7 +46,7 @@ static void swconfig_trig_set_brightness(struct swconfig_trig_data *trig_data, enum led_brightness brightness) { - led_brightness_set(trig_data->led_cdev, brightness); + led_set_brightness(trig_data->led_cdev, brightness); trig_data->prev_brightness = brightness; } @@ -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_brightness_set(trig_data->led_cdev, LED_OFF); + led_set_brightness(trig_data->led_cdev, LED_OFF); } else { unsigned long traffic; int i; |