mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33946 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user