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/patches-3.3 | |
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/patches-3.3')
-rw-r--r-- | target/linux/generic/patches-3.3/a01-swconfig_leds-define-leds_set_brightness.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/generic/patches-3.3/a01-swconfig_leds-define-leds_set_brightness.patch b/target/linux/generic/patches-3.3/a01-swconfig_leds-define-leds_set_brightness.patch new file mode 100644 index 0000000000..e9362e420b --- /dev/null +++ b/target/linux/generic/patches-3.3/a01-swconfig_leds-define-leds_set_brightness.patch @@ -0,0 +1,11 @@ +--- a/drivers/net/phy/swconfig_leds.c ++++ b/drivers/net/phy/swconfig_leds.c +@@ -20,6 +20,8 @@ + #define SWCONFIG_LED_TIMER_INTERVAL (HZ / 10) + #define SWCONFIG_LED_NUM_PORTS 32 + ++#define led_set_brightness(_led, _switch) led_brightness_set((_led), (_switch)) ++ + struct switch_led_trigger { + struct led_trigger trig; + struct switch_dev *swdev; |